DeclarativeRefreshIndicator constructor
const
DeclarativeRefreshIndicator({
- Key? key,
- required Widget child,
- required bool refreshing,
- required VoidCallback onRefresh,
- bool atTop = true,
- double displacement = 40,
- Color? color,
- Color? backgroundColor,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- String? semanticsLabel,
- String? semanticsValue,
- double strokeWidth = 2,
- 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);