RefreshPhysics constructor

RefreshPhysics({
  1. ScrollPhysics? parent,
  2. int? updateFlag,
  3. double? maxUnderScrollExtent,
  4. SpringDescription? springDescription,
  5. RefreshController? controller,
  6. double? dragSpeedRatio,
  7. double? topHitBoundary,
  8. double? bottomHitBoundary,
  9. bool? enableScrollWhenRefreshCompleted,
  10. double? maxOverScrollExtent,
})

创建滚动物理效果,用于控制下拉刷新和上拉加载的行为

参数:

  • parent:父级滚动物理效果
  • updateFlag:更新标志,用于控制运行时类型
  • maxOverScrollExtent:最大上拉超出范围
  • maxUnderScrollExtent:最大下拉超出范围
  • springDescription:弹簧动画描述
  • controller:刷新控制器
  • dragSpeedRatio:拖动速度比例
  • topHitBoundary:顶部碰撞边界
  • bottomHitBoundary:底部碰撞边界
  • enableScrollWhenRefreshCompleted:刷新完成后是否允许滚动

Implementation

RefreshPhysics({
  super.parent,
  this.updateFlag,
  this.maxUnderScrollExtent,
  this.springDescription,
  this.controller,
  this.dragSpeedRatio,
  this.topHitBoundary,
  this.bottomHitBoundary,
  this.enableScrollWhenRefreshCompleted,
  this.maxOverScrollExtent,
});