XLiquidPullToRefresh constructor
const
XLiquidPullToRefresh(- {Key key,
- @required Widget child,
- @required RefreshCallback onRefresh,
- Color color,
- Color backgroundColor,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- double height,
- int springAnimationDurationInMilliseconds = 1000,
- double borderWidth = 2.0,
- bool showChildOpacityTransition = true,
- ScrollController scrollController}
)
Implementation
const XLiquidPullToRefresh({
Key key,
@required this.child,
@required this.onRefresh,
this.color,
this.backgroundColor,
this.notificationPredicate = defaultScrollNotificationPredicate,
this.height,
this.springAnimationDurationInMilliseconds = 1000,
this.borderWidth = 2.0,
this.showChildOpacityTransition = true,
this.scrollController,
}) : assert(child != null),
assert(onRefresh != null),
assert(notificationPredicate != null),
super(key: key);