ReloadToCurrentDepth class final
Re-fetches every loaded page, so a pull keeps the user's scroll depth instead of snapping back to the start.
If a page fails, the list stays as it was, since pages read at different times can lose or repeat rows where they meet.
A page still loading when the pull happens is dropped and asked again, so stale data can't land on top of the fresh pages.
Constructors
- ReloadToCurrentDepth({int? concurrency = 1, @Deprecated('Does nothing now. Remove it, it goes at the next major.') ReloadOnError onError = .commitSucceeded})
-
Creates it.
const
Properties
- concurrency → int?
-
How many page fetches may run at once:
1(the default) sequential,nullall together,Kat mostKin flight. AwithSignalsource ignores it, since pagekneeds pagek-1.final - hashCode → int
-
The hash code for this object.
no setterinherited
- onError → ReloadOnError
-
Ignored.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited