xPullRefresh method

Widget xPullRefresh (
  1. {@required Future<void> onRefresh(
      ),
    1. Color color,
    2. Color backgroundColor,
    3. bool notificationPredicate(
      1. ScrollNotification
      ) = defaultScrollNotificationPredicate,
    4. double strokeWidth = 2.0,
    5. double displacement = 40.0,
    6. bool showChildOpacityTransition = true,
    7. String semanticsLabel,
    8. String semanticsValue,
    9. Key key}
    )

    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,
      );
    }