PlayControlWidget constructor
const
PlayControlWidget({
- Key? key,
- bool autoHide = true,
- ValueChanged<
bool> ? onVisibilityChanged, - VoidCallback? onSingleTap,
- VoidCallback? onDoubleTap,
- VoidCallback? onLongPressStart,
- VoidCallback? onLongPressEnd,
- ValueChanged<
double> ? onHorizontalDragUpdate, - ValueChanged<
double> ? onHorizontalDragEnd, - ValueChanged<
double> ? onLeftVerticalDragUpdate, - ValueChanged<
double> ? onLeftVerticalDragEnd, - ValueChanged<
double> ? onRightVerticalDragUpdate, - ValueChanged<
double> ? onRightVerticalDragEnd, - Duration autoHideControlsDuration = SettingConstants.defaultAutoHideControlsDuration,
Implementation
const PlayControlWidget({
super.key,
this.autoHide = true,
this.onVisibilityChanged,
this.onSingleTap,
this.onDoubleTap,
this.onLongPressStart,
this.onLongPressEnd,
this.onHorizontalDragUpdate,
this.onHorizontalDragEnd,
this.onLeftVerticalDragUpdate,
this.onLeftVerticalDragEnd,
this.onRightVerticalDragUpdate,
this.onRightVerticalDragEnd,
this.autoHideControlsDuration =
SettingConstants.defaultAutoHideControlsDuration,
});