stop method

void stop()

Implementation

void stop() {
  if (media != null) {
    media?.pause();
    media?.currentTime = 0;
  }
}