XLiquidPullToRefresh constructor

const XLiquidPullToRefresh(
  1. {Key key,
  2. @required Widget child,
  3. @required RefreshCallback onRefresh,
  4. Color color,
  5. Color backgroundColor,
  6. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  7. double height,
  8. int springAnimationDurationInMilliseconds = 1000,
  9. double borderWidth = 2.0,
  10. bool showChildOpacityTransition = true,
  11. 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);