GemCameraPlayerValue constructor
GemCameraPlayerValue({
- required DataSource dataSource,
- required GemCameraPlayerStatus status,
- Camera? camera,
- DataSourceListener? listener,
Creates a new immutable camera player value with the specified state.
Immutable container used by GemCameraPlayerController to represent the current playback state, latest frame, and optional internal listener. Use copyWith to produce modified instances rather than mutating this one.
Parameters
dataSource: The DataSource that supplies camera frames for this player.status: The current GemCameraPlayerStatus indicating playback state.camera: Optional latest Camera frame data;nullif no frame has been received yet.listener: Optional internal DataSourceListener registered ondataSourcefor updates. Stored for cleanup and should not be used directly.
Implementation
GemCameraPlayerValue({
required this.dataSource,
required this.status,
this.camera,
DataSourceListener? listener,
}) : _listener = listener;