isLast property Null safety

bool isLast

Implementation

bool get isLast =>
    this == IterationPosition.last || this == IterationPosition.only;