pause method

void pause()

Pauses the camera feed playback.

Sets the playback status to GemCameraPlayerStatus.paused if currently playing. Does not affect the underlying DataSource sensor playback - only pauses the visual rendering of camera frames in the player widget.

Also see:

Implementation

void pause() {
  if (value.status == GemCameraPlayerStatus.playing) {
    value = value.copyWith(status: GemCameraPlayerStatus.paused);
  }
}