RefreshController class
Constructors
- RefreshController({bool initialRefresh = false, RefreshStatus? initialRefreshStatus, LoadStatus? initialLoadStatus})
Properties
-
getter/setter pair
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headerMode
↔ RefreshNotifier<
RefreshStatus> ? -
getter/setter pair
- headerStatus → RefreshStatus?
-
no setter
- initialRefresh → bool
-
final
- isLoading → bool
-
no setter
- isRefresh → bool
-
no setter
- isTwoLevel → bool
-
no setter
- position ↔ ScrollPosition?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
loadComplete(
) → void -
loadFailed(
) → void -
loadNoData(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPositionUpdated(
ScrollPosition newPosition) → void -
refreshCompleted(
{→ void }) -
refreshFailed(
) → void -
refreshToIdle(
) → void -
requestLoading(
{bool needMove = true, bool needCallback = true, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.linear}) → Future< void> ? -
requestRefresh(
{bool needMove = true, bool needCallback = true, Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.linear}) → Future< void> ? -
requestTwoLevel(
{Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.linear}) → Future< void> -
resetNoData(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
twoLevelComplete(
{Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.linear}) → Future< void> ?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited