refreshIndicator method
Widget
refreshIndicator({
- required RefreshCallback onRefresh,
- Key? key,
- double displacement = 40.0,
- double edgeOffset = 0.0,
- Color? color,
- Color? backgroundColor,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- String? semanticsLabel,
- String? semanticsValue,
- double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
- RefreshIndicatorTriggerMode triggerMode = RefreshIndicatorTriggerMode.onEdge,
A widget that supports the Material "swipe to refresh" idiom.
Implementation
Widget refreshIndicator({
required RefreshCallback onRefresh,
Key? key,
double displacement = 40.0,
double edgeOffset = 0.0,
Color? color,
Color? backgroundColor,
ScrollNotificationPredicate notificationPredicate =
defaultScrollNotificationPredicate,
String? semanticsLabel,
String? semanticsValue,
double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
RefreshIndicatorTriggerMode triggerMode =
RefreshIndicatorTriggerMode.onEdge,
}) {
return RefreshIndicator(
key: key,
onRefresh: onRefresh,
displacement: displacement,
edgeOffset: edgeOffset,
color: color,
backgroundColor: backgroundColor,
notificationPredicate: notificationPredicate,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
strokeWidth: strokeWidth,
triggerMode: triggerMode,
child: this,
);
}