SwipeRefresh constructor
const
SwipeRefresh({
- required Widget child,
- required SwipeRefreshCallback onRefresh,
- double displacement = 40.0,
- double edgeOffset = 0.0,
- Color? color,
- Color? backgroundColor,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- String? semanticsLabel,
- String? semanticsValue,
- double strokeWidth = 2.0,
- RefreshIndicatorTriggerMode triggerMode = RefreshIndicatorTriggerMode.onEdge,
- 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);