RefreshPhysics constructor
RefreshPhysics({
- ScrollPhysics? parent,
- int? updateFlag,
- double? maxUnderScrollExtent,
- SpringDescription? springDescription,
- RefreshController? controller,
- double? dragSpeedRatio,
- double? topHitBoundary,
- double? bottomHitBoundary,
- bool? enableScrollWhenRefreshCompleted,
- 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,
});