GameAudio class

Constructors

GameAudio()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

audioCache ↔ AudioCache
Access a shared instance of the AudioCache class.
getter/setter pair
audioPlayer ↔ AudioPlayer?
getter/setter pair
isPlaying bool
getter/setter pair
playBGM Bgm
Access a shared instance of the Bgm class.
latefinal

Static Methods

loop(String file, {double volume = 1.0}) Future<AudioPlayer>
Plays, and keep looping the given file
loopLongAudio(String file, {double volume = 1.0}) Future<AudioPlayer>
Plays, and keep looping the given file This method supports long audio files
play(String file, {double volume = 1.0}) Future<AudioPlayer>
Plays a single run of the given file, with a given volume.
playLongAudio(String file, {double volume = 1.0}) Future<AudioPlayer>
Plays a single run of the given file file This method supports long audio files
stop() Future<void>