RivePullToRefresh constructor
const
RivePullToRefresh({
- required Future<
void> onRefresh(), - required void onInit(),
- required Widget riveWidget,
- @Deprecated('Please use children and dont need set physics') Widget? child,
- List<
Widget> ? children, - required double height,
- dynamic dxOfPointer()?,
- dynamic callBackNumber()?,
- dynamic bump()?,
- RivePullToRefreshStyle style = RivePullToRefreshStyle.header,
- ScrollController? controller,
- double percentActiveBump = 0.3,
- double dragSizeFactorLimitMax = 1.5,
- double sizeFactorLimitMin = 1 / 1.5,
- double kDragContainerExtentPercentage = 0.25,
- Duration timeResize = const Duration(milliseconds: 200),
- Function? onMoveToPositionBumpStart,
- Curve? curveMoveToPositionBumpStart = Curves.linear,
- double maxSizePaddingChildWhenPullDown = 0,
- RiveOpenHeaderStyle? openHeaderStyle = RiveOpenHeaderStyle.moveDown,
- Side side = Side.top,
- Key? key,
Implementation
const RivePullToRefresh(
{required this.onRefresh,
required this.onInit,
required this.riveWidget,
@Deprecated('Please use children and dont need set physics') this.child,
this.children,
required this.height,
this.dxOfPointer,
this.callBackNumber,
this.bump,
this.style = RivePullToRefreshStyle.header,
this.controller,
this.percentActiveBump = 0.3,
this.dragSizeFactorLimitMax = 1.5,
this.sizeFactorLimitMin = 1 / 1.5,
this.kDragContainerExtentPercentage = 0.25,
this.timeResize = const Duration(milliseconds: 200),
this.onMoveToPositionBumpStart,
this.curveMoveToPositionBumpStart = Curves.linear,
this.maxSizePaddingChildWhenPullDown = 0,
this.openHeaderStyle = RiveOpenHeaderStyle.moveDown,
this.side = Side.top,
Key? key})
: super(key: key);