refreshable method

RefreshIndicator refreshable({
  1. Key? key,
  2. double displacement = 40.0,
  3. double edgeOffset = 0.0,
  4. required Future<void> onRefresh(),
  5. Color? color,
  6. Color? backgroundColor,
  7. bool notificationPredicate(
    1. ScrollNotification
    ) = defaultScrollNotificationPredicate,
  8. String? semanticsLabel,
  9. String? semanticsValue,
  10. double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  11. RefreshIndicatorTriggerMode triggerMode = .onEdge,
  12. double elevation = 2.0,
})

Returns a new refresh indicator widget.

Implementation

RefreshIndicator refreshable({
  Key? key,
  double displacement = 40.0,
  double edgeOffset = 0.0,
  required Future<void> Function() onRefresh,
  Color? color,
  Color? backgroundColor,
  bool Function(ScrollNotification) notificationPredicate =
      defaultScrollNotificationPredicate,
  String? semanticsLabel,
  String? semanticsValue,
  double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  RefreshIndicatorTriggerMode triggerMode = .onEdge,
  double elevation = 2.0,
}) {
  return RefreshIndicator(
    key: key,
    displacement: displacement,
    edgeOffset: edgeOffset,
    onRefresh: onRefresh,
    color: color,
    backgroundColor: backgroundColor,
    notificationPredicate: notificationPredicate,
    semanticsLabel: semanticsLabel,
    semanticsValue: semanticsValue,
    strokeWidth: strokeWidth,
    triggerMode: triggerMode,
    elevation: elevation,
    child: this,
  );
}