CustomHeader constructor

const CustomHeader({
  1. Key? key,
  2. required HeaderBuilder builder,
  3. VoidFutureCallBack? readyToRefresh,
  4. VoidFutureCallBack? endRefresh,
  5. OffsetCallBack? onOffsetChange,
  6. ModeChangeCallBack<RefreshStatus>? onModeChange,
  7. VoidCallback? onResetValue,
  8. double height = 60.0,
  9. Duration completeDuration = const Duration(milliseconds: 600),
  10. RefreshStyle refreshStyle = RefreshStyle.Follow,
})

Implementation

const CustomHeader({
  Key? key,
  required this.builder,
  this.readyToRefresh,
  this.endRefresh,
  this.onOffsetChange,
  this.onModeChange,
  this.onResetValue,
  double height = 60.0,
  Duration completeDuration = const Duration(milliseconds: 600),
  RefreshStyle refreshStyle = RefreshStyle.Follow,
}) : super(
          key: key,
          completeDuration: completeDuration,
          refreshStyle: refreshStyle,
          height: height);