isFirst property

bool get isFirst

是否为整个弹层的首行。默认 index == 0

Implementation

bool get isFirst => _isFirst ?? (index == 0);