MaterialIndicatorDelegate class
Builds a container that behaves similarly to the material refresh indicator
- Inheritance
-
- Object
- IndicatorBuilderDelegate
- MaterialIndicatorDelegate
- Annotations
-
- @Deprecated('In favor of CustomMaterialIndicator widget.')
Constructors
- MaterialIndicatorDelegate({required MaterialIndicatorBuilder builder, IndicatorBuilder scrollableBuilder = _defaultBuilder, Color? backgroundColor, double displacement = 40.0, double edgeOffset = 0.0, bool withRotation = true, double elevation = 2.0, Clip clipBehavior = Clip.none})
-
const
Properties
- autoRebuild → bool
-
When set to true, the build function will be called whenever the controller changes.
It is set to
true
by default.no setteroverride - backgroundColor → Color?
-
The indicator background color
final
- builder → MaterialIndicatorBuilder
-
Builds the content for the indicator container
final
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
final
- displacement → double
-
The distance from the child's top or bottom edgeOffset where
the refresh indicator will settle. During the drag that exposes the refresh
indicator, its actual displacement may significantly exceed this value.
final
- edgeOffset → double
-
The offset where indicator starts to appear on drag start.
final
- elevation → double
-
The z-coordinate at which to place this material relative to its parent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollableBuilder → IndicatorBuilder
-
Builds the scrollable.
final
- withRotation → bool
-
When set to true, the indicator will rotate
in the IndicatorState.loading state.
final
Methods
-
build(
BuildContext context, Widget child, IndicatorController controller) → Widget -
Function that builds the custom refresh indicator
override
-
call(
BuildContext context, Widget child, IndicatorController controller) → Widget -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited