Dragball constructor
const
Dragball({
- Key? key,
- required Widget child,
- required Widget ball,
- required VoidCallback onTap,
- required DragballPosition initialPosition,
- required ValueChanged<
DragballPosition> onPositionChanged, - OnIconBallTapped? onIconBallTapped,
- DragballController? controller,
- double marginTopBottom = 150,
- bool withIcon = true,
- Widget? icon,
- double iconSize = 24,
- bool rotateIcon = true,
- Duration? animationSizeDuration,
- Curve? curveSizeAnimation,
- IconPosition iconPosition = IconPosition.center,
- 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);