RivePullToRefresh constructor

const RivePullToRefresh({
  1. required Future<void> onRefresh(),
  2. required void onInit(
    1. RivePullToRefreshController
    ),
  3. required Widget riveWidget,
  4. @Deprecated('Please use children and dont need set physics') Widget? child,
  5. List<Widget>? children,
  6. required double height,
  7. dynamic dxOfPointer(
    1. double
    )?,
  8. dynamic callBackNumber(
    1. double
    )?,
  9. dynamic bump()?,
  10. RivePullToRefreshStyle style = RivePullToRefreshStyle.header,
  11. ScrollController? controller,
  12. double percentActiveBump = 0.3,
  13. double dragSizeFactorLimitMax = 1.5,
  14. double sizeFactorLimitMin = 1 / 1.5,
  15. double kDragContainerExtentPercentage = 0.25,
  16. Duration timeResize = const Duration(milliseconds: 200),
  17. Function? onMoveToPositionBumpStart,
  18. Curve? curveMoveToPositionBumpStart = Curves.linear,
  19. double maxSizePaddingChildWhenPullDown = 0,
  20. RiveOpenHeaderStyle? openHeaderStyle = RiveOpenHeaderStyle.moveDown,
  21. Side side = Side.top,
  22. 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);