Skip to main content Link Menu Expand (external link) Document Search Copy Copied
playerState property - FlutterSoundPlayer class - player library - Dart API
menu
playerState

playerState property

PlayerState get playerState

Getter of the current state of the Player


Return

the current state of the player

Example

if (playerState == PlayerState.isPlaying) {
  // doSomething
}

See also


Implementation

PlayerState get playerState => _playerState;
flutter_sound 9.25.3