MultiPull constructor

const MultiPull({
  1. Key? key,
  2. required Widget child,
  3. double displacement = 40.0,
  4. required List<PullIndicator> pullIndicators,
  5. CircleIndicator circleIndicator = const DefaultCircle(),
  6. Duration? circleMoveDuration,
  7. Curve circleMoveCurve = Curves.easeIn,
  8. Color? refreshColor,
  9. Color? refreshBackgroundColor,
  10. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  11. String? semanticsLabel,
  12. String? semanticsValue,
  13. 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);