SwipeRefresh constructor

const SwipeRefresh({
  1. required Widget child,
  2. required SwipeRefreshCallback onRefresh,
  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 = 2.0,
  11. RefreshIndicatorTriggerMode triggerMode = RefreshIndicatorTriggerMode.onEdge,
  12. Key? key,
})

Implementation

const SwipeRefresh({
  required this.child,
  required this.onRefresh,
  this.displacement = 40.0,
  this.edgeOffset = 0.0,
  this.color,
  this.backgroundColor,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.semanticsLabel,
  this.semanticsValue,
  this.strokeWidth = 2.0,
  this.triggerMode = RefreshIndicatorTriggerMode.onEdge,
  Key? key,
})  : _key = key,
      super(key: null);