PageOffset class
Constructors
- PageOffset(int startAt, int length)
- PageOffset.from(int sectionsCount, int length)
- PageOffset.fromPagination(int offset, int length)
- PageOffset.of(int startAt, int endAt)
Properties
- endAt → int
-
it is a position after last position
Todo: Fix it with match with last position
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- length → int
-
it is a positions count
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startAt → int
-
it is a first position
final
Methods
-
applyEnd(
int offset) → PageOffset -
contains(
PageOffset other) → bool -
it check if
other
scheme is in this scheme -
containsOffset(
int other) → bool -
it check if
other
offset is in this scheme -
copyWith(
{int? startAt, int? length}) → PageOffset -
find(
PageOffset other) → PageOffset? -
mergeWith(
{int? startAt, int? endAt}) → PageOffset -
move(
int length) → PageOffset -
next(
) → PageOffset -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restart(
) → PageOffset -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override