Dragball constructor

const Dragball({
  1. Key? key,
  2. required Widget child,
  3. required Widget ball,
  4. required VoidCallback onTap,
  5. required DragballPosition initialPosition,
  6. required ValueChanged<DragballPosition> onPositionChanged,
  7. OnIconBallTapped? onIconBallTapped,
  8. DragballController? controller,
  9. double marginTopBottom = 150,
  10. bool withIcon = true,
  11. Widget? icon,
  12. double iconSize = 24,
  13. bool rotateIcon = true,
  14. Duration? animationSizeDuration,
  15. Curve? curveSizeAnimation,
  16. IconPosition iconPosition = IconPosition.center,
  17. bool scrollAndHide = true,
})

Implementation

const Dragball({
  Key? key,
  required this.child,
  required this.ball,
  required this.onTap,
  required this.initialPosition,
  required this.onPositionChanged,
  this.onIconBallTapped,
  this.controller,
  this.marginTopBottom = 150,
  this.withIcon = true,
  this.icon,
  this.iconSize = 24,
  this.rotateIcon = true,
  this.animationSizeDuration,
  this.curveSizeAnimation,
  this.iconPosition = IconPosition.center,
  this.scrollAndHide = true,
}) : super(key: key);