BGMStore class

BGM store, encapsulates MusicStore for the BGM panel UI.

Constructors

BGMStore(String roomId)

Properties

bgmState BGMState
final
hashCode int
The hash code for this object.
no setterinherited
playStatusListenable ValueListenable<MusicPlayStatus>
Listenable to playback status changes, exposed for UI rebuild.
no setter
roomId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isMusicPlaying(BGMInfo musicInfo) bool
Whether the given musicInfo is currently playing. Both LOADING and PLAYING states are treated as "playing".
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
operatePlayMusic(BGMInfo musicInfo) → void
Toggle play/stop for musicInfo, aligned with Android native BGMStore.operatePlayMusic:
refreshCurrentMusicInfo() → void
Refresh BGMState.currentMusicInfo from the underlying MusicStore when the panel is opened.
toString() String
A string representation of this object.
inherited

Operators

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