EasyRefreshController class
Controls a EasyRefresh widget. Control refresh, loading and indicator states.
Constructors
- EasyRefreshController.new({bool controlFinishRefresh = false, bool controlFinishLoad = false})
Properties
- controlFinishLoad → bool
-
Take over the completion event of the load task.
Finish the load with finishLoad and return the result.
final
- controlFinishRefresh → bool
-
Take over the completion event of the refresh task.
Finish the refresh with finishRefresh and return the result.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callLoad(
{double? overOffset, Duration? duration = const Duration(milliseconds: 300), Curve curve = Curves.linear}) → void -
Automatically trigger load.
overOffset
Offset beyond the trigger offset, must be greater than 0.duration
See ScrollPosition.animateTo.curve
See ScrollPosition.animateTo. -
callRefresh(
{double? overOffset, Duration? duration = const Duration(milliseconds: 200), Curve curve = Curves.linear}) → void -
Automatically trigger refresh.
overOffset
Offset beyond the trigger offset, must be greater than 0.duration
See ScrollPosition.animateTo.curve
See ScrollPosition.animateTo. -
dispose(
) → void - Unbind.
-
finishLoad(
[IndicatorResult result = IndicatorResult.succeeded]) → void -
Finish the load task and return the result.
result
Result of task completion. -
finishRefresh(
[IndicatorResult result = IndicatorResult.succeeded]) → void -
Finish the refresh task and return the result.
result
Result of task completion. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
Open footer secondary.
duration
See ScrollPosition.animateTo.curve
See ScrollPosition.animateTo. -
openHeaderSecondary(
{Duration? duration = const Duration(milliseconds: 200), Curve curve = Curves.linear}) → void -
Open header secondary.
duration
See ScrollPosition.animateTo.curve
See ScrollPosition.animateTo. - Reset Footer indicator state.
-
resetHeader(
) → void - Reset Header indicator state.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited