DeclarativeRefreshIndicator constructor

const DeclarativeRefreshIndicator({
  1. Key? key,
  2. required Widget child,
  3. required bool refreshing,
  4. required VoidCallback onRefresh,
  5. bool atTop = true,
  6. double displacement = 40,
  7. Color? color,
  8. Color? backgroundColor,
  9. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  10. String? semanticsLabel,
  11. String? semanticsValue,
  12. double strokeWidth = 2,
  13. RefreshIndicatorTriggerMode triggerMode = RefreshIndicatorTriggerMode.onEdge,
})

Implementation

const DeclarativeRefreshIndicator({
  Key? key,
  required this.child,
  required this.refreshing,
  required this.onRefresh,
  this.atTop = true,
  this.displacement = 40,
  this.color,
  this.backgroundColor,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.semanticsLabel,
  this.semanticsValue,
  this.strokeWidth = 2,
  this.triggerMode = RefreshIndicatorTriggerMode.onEdge,
}) : super(key: key);