hasPrevious property Null safety

bool hasPrevious

Whether there is another item before the current index.

Implementation

bool get hasPrevious => previousIndex != null;