getState method

Future<String> getState()

Returns the current playback state.

Possible values:

  • "stopped": Not currently playing (idle state)
  • "playing": Currently playing a recording
  • "paused": Playback is paused

Implementation

Future<String> getState() {
  return _messenger.getPlaybackState();
}