EnabledControls class

this class helps you to hide some player buttons

Constructors

EnabledControls({bool desktopTapToPlayAndPause = true, bool escapeKeyCloseFullScreen = true, bool numPadDecimalKeyToggleFit = true, bool enterKeyOpensFullScreen = true, bool spaceKeyTogglePlay = true, bool volumeArrows = true, bool seekArrows = true, bool seekSwipes = true, bool volumeSwipes = true, bool brightnessSwipes = true, bool doubleTapToSeek = true, bool desktopDoubleTapToFullScreen = true, bool onLongPressSpeedUp = false})
const

Properties

brightnessSwipes bool
on mobile, swipe vertically to control brightness (on left side)
final
desktopDoubleTapToFullScreen bool
on desktop, double clicks with mouse go fullScreen or close it
final
desktopTapToPlayAndPause bool
on desktop, one click with mouse go toggle play and pause
final
doubleTapToSeek bool
on mobile, double tap on sides to seek forward or backwards
final
enterKeyOpensFullScreen bool
on desktop, enter Key opens video fullScreen
final
escapeKeyCloseFullScreen bool
on desktop, escape closes fullScreen
final
hashCode int
The hash code for this object.
no setterinherited
numPadDecimalKeyToggleFit bool
on desktop, numPad Decimal (.) Toggle Fit of video
final
onLongPressSpeedUp bool
on mobile, long press to speed up video and slows down when long press finishes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seekArrows bool
on desktop, keyboard arrows (right and left) forward and backward seek
final
seekSwipes bool
on mobile, swipe horizontally to seek in video
final
spaceKeyTogglePlay bool
on desktop, space Key toggle from playing to pause and pause to playing
final
volumeArrows bool
on desktop, keyboard arrows (up and down) increase and decrease volume
final
volumeSwipes bool
on mobile, swipe vertically to control volume (on right side)
final

Methods

copyWith({bool? desktopTapToPlayAndPause, bool? seekSwipes, bool? volumeSwipes, bool? brightnessSwipes, bool? doubleTapToSeek, bool? desktopDoubleTapToFullScreen, bool? volumeArrows, bool? seekArrows, bool? escapeKeyCloseFullScreen, bool? numPadDecimalKeyToggleFit, bool? enterKeyOpensFullScreen, bool? spaceKeyTogglePlay, bool? onLongPressSpeedUp}) EnabledControls
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited