xPullRefresh method
Implementation
Widget xPullRefresh({
@required Future<void> Function() onRefresh,
Color color,
Color backgroundColor,
bool Function(ScrollNotification) notificationPredicate =
defaultScrollNotificationPredicate,
double strokeWidth = 2.0,
double displacement = 40.0,
bool showChildOpacityTransition = true,
String semanticsLabel,
String semanticsValue,
Key key,
}) {
return RefreshIndicator(
onRefresh: onRefresh,
color: color,
backgroundColor: backgroundColor,
displacement: displacement,
key: key,
notificationPredicate: notificationPredicate,
semanticsLabel: semanticsLabel,
semanticsValue: semanticsValue,
strokeWidth: strokeWidth,
child: this,
);
}