xLiquidPullToRefresh method

Widget xLiquidPullToRefresh (
  1. {@required Future<void> onRefresh(
      ),
    1. Color color,
    2. Color backgroundColor,
    3. bool notificationPredicate(
      1. ScrollNotification
      ) = defaultScrollNotificationPredicate,
    4. double height,
    5. int springAnimationDurationInMilliseconds = 1000,
    6. double borderWidth = 2.0,
    7. bool showChildOpacityTransition = true,
    8. ScrollController scrollController,
    9. Key key}
    )

    Implementation

    Widget xLiquidPullToRefresh({
      @required Future<void> Function() onRefresh,
      Color color,
      Color backgroundColor,
      bool Function(ScrollNotification) notificationPredicate =
          defaultScrollNotificationPredicate,
      double height,
      int springAnimationDurationInMilliseconds = 1000,
      double borderWidth = 2.0,
      bool showChildOpacityTransition = true,
      ScrollController scrollController,
      Key key,
    }) {
      return XLiquidPullToRefresh(
        onRefresh: onRefresh,
        backgroundColor: backgroundColor,
        borderWidth: borderWidth,
        color: color,
        height: height,
        key: key,
        notificationPredicate: notificationPredicate,
        scrollController: scrollController,
        showChildOpacityTransition: showChildOpacityTransition,
        springAnimationDurationInMilliseconds:
            springAnimationDurationInMilliseconds,
        child: this,
      );
    }