isLast property

bool get isLast

Determines if this element is the last one into the list

Implementation

bool get isLast => list == null ? false : list!.last == this;