refreshable method
RefreshIndicator
refreshable({
- Key? key,
- double displacement = 40.0,
- double edgeOffset = 0.0,
- required Future<
void> onRefresh(), - Color? color,
- Color? backgroundColor,
- bool notificationPredicate() = defaultScrollNotificationPredicate,
- String? semanticsLabel,
- String? semanticsValue,
- double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
- RefreshIndicatorTriggerMode triggerMode = .onEdge,
- double elevation = 2.0,
Returns a new refresh indicator widget.
Implementation
RefreshIndicator refreshable({
Key? key,
double displacement = 40.0,
double edgeOffset = 0.0,
required Future<void> Function() onRefresh,
Color? color,
Color? backgroundColor,
bool Function(ScrollNotification) notificationPredicate =
defaultScrollNotificationPredicate,
String? semanticsLabel,
String? semanticsValue,
double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth,
RefreshIndicatorTriggerMode triggerMode = .onEdge,
double elevation = 2.0,
}) {
return RefreshIndicator(
key: key,
displacement: displacement,
edgeOffset: edgeOffset,
onRefresh: onRefresh,
color: color,
backgroundColor: backgroundColor,
notificationPredicate: notificationPredicate,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
strokeWidth: strokeWidth,
triggerMode: triggerMode,
elevation: elevation,
child: this,
);
}