setPlayerState method

void setPlayerState(
  1. PlayerState state
)

Implementation

void setPlayerState(PlayerState state) {
  _playerState = state;
  PlatformStreams.instance
      .addPlayerStateEvent(PlayerIdentifier(playerKey, state));
}