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;