isInitial method

  1. @override
bool isInitial()
override

Returns true if this scroll position represents the initial position of the collection or dataset.

Example

final pos = ScrollPosition.keySet();
print(pos.isInitial()); // true

Implementation

@override
bool isInitial() => this == INITIAL || _offset == -1;