hasPrevious property

bool get hasPrevious

Whether there is another item before the current index.

Implementation

bool get hasPrevious => previousIndex != null;