HeaderNotifier constructor

HeaderNotifier({
  1. required Header header,
  2. required ValueNotifier<bool> userOffsetNotifier,
  3. required TickerProviderStateMixin<StatefulWidget> vsync,
  4. required CanProcessCallBack onCanRefresh,
  5. bool canProcessAfterNoMore = false,
  6. bool canProcessAfterFail = true,
  7. Axis? triggerAxis,
  8. FutureOr onRefresh()?,
  9. bool waitRefreshResult = true,
})

Implementation

HeaderNotifier({
  required Header header,
  required super.userOffsetNotifier,
  required super.vsync,
  required CanProcessCallBack onCanRefresh,
  super.canProcessAfterNoMore = false,
  bool canProcessAfterFail = true,
  super.triggerAxis,
  FutureOr Function()? onRefresh,
  bool waitRefreshResult = true,
}) : super(
        indicator: header,
        onCanProcess: onCanRefresh,
        task: onRefresh,
        waitTaskResult: waitRefreshResult,
      );