PlaybackState.from constructor

PlaybackState.from(
  1. int i
)

Implementation

factory PlaybackState.from(int i) {
  const states = [
    PlaybackState.stopped,
    PlaybackState.playing,
    PlaybackState.paused,
  ];
  return states[i];
}