pause method
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:
- Playback.pause - Pause the underlying data source playback
Implementation
void pause() {
if (value.status == GemCameraPlayerStatus.playing) {
value = value.copyWith(status: GemCameraPlayerStatus.paused);
}
}