CusRefreshHeader constructor

CusRefreshHeader({
  1. double height = 60.0,
  2. double triggerDistance = 70.0,
  3. Duration completeDuration = const Duration(seconds: 0),
  4. bool enableHapticFeedback = false,
})

height header容器高度 triggerDistance 触发刷新最小距离 completeDuration 完成后延时时间 enableHapticFeedback 是否启用振动反弹

Implementation

CusRefreshHeader(
    {double height = 60.0,
    double triggerDistance = 70.0,
    Duration completeDuration = const Duration(seconds: 0),
    bool enableHapticFeedback = false})
    : super(
        extent: height,
        triggerDistance: triggerDistance,
        float: false,
        completeDuration: completeDuration,
        enableInfiniteRefresh: false,
        enableHapticFeedback: enableHapticFeedback,
      ) {
  this.completeDuration = completeDuration;
}