play method

  1. @override
void play()
override

Implementation

@override
void play() {
  notify(PlayerEvent.play);
  if (!playing) {
    _status = PlayerStatus.playing;
    player.play();
    if (once) {
      player.playbackStream.listen((event) {
        if (event.isCompleted) {
          dispose();
        }
      });
    }
  }
}