contentBuilder method

  1. @override
Widget contentBuilder(
  1. BuildContext context,
  2. RefreshMode refreshState,
  3. double pulledExtent,
  4. double refreshTriggerPullDistance,
  5. double refreshIndicatorExtent,
  6. AxisDirection axisDirection,
  7. bool float,
  8. Duration? completeDuration,
  9. bool enableInfiniteRefresh,
  10. bool success,
  11. bool noMore,
)
override

Implementation

@override
Widget contentBuilder(
    BuildContext context,
    RefreshMode refreshState,
    double pulledExtent,
    double refreshTriggerPullDistance,
    double refreshIndicatorExtent,
    AxisDirection axisDirection,
    bool float,
    Duration? completeDuration,
    bool enableInfiniteRefresh,
    bool success,
    bool noMore) {
  // 不能为水平方向以及反向
  assert(axisDirection == AxisDirection.down,
      'Widget can only be vertical and cannot be reversed');
  linkNotifier.contentBuilder(
      context,
      refreshState,
      pulledExtent,
      refreshTriggerPullDistance,
      refreshIndicatorExtent,
      axisDirection,
      float,
      completeDuration,
      enableInfiniteRefresh,
      success,
      noMore);
  return BezierCircleHeaderWidget(
    key: key,
    color: color,
    backgroundColor: backgroundColor,
    linkNotifier: linkNotifier,
  );
}