refreshIndicator method

Widget refreshIndicator({
  1. required RefreshCallback onRefresh,
  2. Key? key,
  3. double displacement = 40.0,
  4. double edgeOffset = 0.0,
  5. Color? color,
  6. Color? backgroundColor,
  7. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  8. String? semanticsLabel,
  9. String? semanticsValue,
  10. double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  11. RefreshIndicatorTriggerMode triggerMode = RefreshIndicatorTriggerMode.onEdge,
})

A widget that supports the Material "swipe to refresh" idiom.

Implementation

Widget refreshIndicator({
  required RefreshCallback onRefresh,
  Key? key,
  double displacement = 40.0,
  double edgeOffset = 0.0,
  Color? color,
  Color? backgroundColor,
  ScrollNotificationPredicate notificationPredicate =
      defaultScrollNotificationPredicate,
  String? semanticsLabel,
  String? semanticsValue,
  double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  RefreshIndicatorTriggerMode triggerMode =
      RefreshIndicatorTriggerMode.onEdge,
}) {
  return RefreshIndicator(
    key: key,
    onRefresh: onRefresh,
    displacement: displacement,
    edgeOffset: edgeOffset,
    color: color,
    backgroundColor: backgroundColor,
    notificationPredicate: notificationPredicate,
    semanticsLabel: semanticsLabel,
    semanticsValue: semanticsValue,
    strokeWidth: strokeWidth,
    triggerMode: triggerMode,
    child: this,
  );
}