pause method

void pause()

Implementation

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