RefreshView constructor

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

Implementation

const RefreshView({
  super.key,
  required this.child,
  this.onRefresh,
  this.backgroundColor,
  this.color,
  this.displacement = 40.0,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.semanticsLabel,
  this.semanticsValue,
  this.strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
  this.triggerMode = RefreshIndicatorTriggerMode.onEdge,
});