MinkGlobalPlayer class

Manage the three audio flows

Constructors

MinkGlobalPlayer.new({FlowPlayer? mockedOffVoicePlayer, FlowPlayer? mockedMusicPlayer, FlowPlayer? mockedEffectPlayer})
mockedOffVoicePlayer, mockedMusicPlayer and mockedEffectPlayer are only needed for testing

Properties

effect FlowPlayer
Effects flow
final
hashCode int
The hash code for this object.
no setterinherited
music FlowPlayer
Music flow, loop by default
final
offVoice FlowPlayer
Off voice flow
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pause all flows players
play() Future<void>
Play all flow players
playOnlyMusicAndVoice() Future<void>
Play only music and off voice player
stop() Future<void>
Stop all flows players
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MinkGlobalPlayer
Instance is used to keep same audio players for whole app
getter/setter pair