MultiPull constructor
const
MultiPull({
- Key? key,
- required Widget child,
- double displacement = 40.0,
- required List<
PullIndicator> pullIndicators, - CircleIndicator circleIndicator = const DefaultCircle(),
- Duration? circleMoveDuration,
- Curve circleMoveCurve = Curves.easeIn,
- Color? refreshColor,
- Color? refreshBackgroundColor,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- String? semanticsLabel,
- String? semanticsValue,
- double strokeWidth = 2.0,
Creates a refresh indicator.
The onRefresh
, child, and notificationPredicate arguments must be
non-null. The default
displacement is 40.0 logical pixels.
The semanticsLabel is used to specify an accessibility label for this widget. If it is null, it will be defaulted to MaterialLocalizations.refreshIndicatorSemanticLabel. An empty string may be passed to avoid having anything read by screen reading software. The semanticsValue may be used to specify progress on the widget.
Implementation
const MultiPull(
{Key? key,
required this.child,
this.displacement = 40.0,
required this.pullIndicators,
this.circleIndicator = const DefaultCircle(),
this.circleMoveDuration,
this.circleMoveCurve = Curves.easeIn,
this.refreshColor,
this.refreshBackgroundColor,
this.notificationPredicate = defaultScrollNotificationPredicate,
this.semanticsLabel,
this.semanticsValue,
this.strokeWidth = 2.0})
: super(key: key);