GemCameraPlayerValue class Sensor Data Source

Immutable state container for a camera player controller.

Holds the current DataSource providing camera frames, the playback status, and optionally the latest Camera frame data and its associated listener. This value object is used by GemCameraPlayerController to track and notify state changes during camera feed playback. Create instances using the constructor or copyWith method to produce new values with updated fields.

See also:

Constructors

GemCameraPlayerValue({required DataSource dataSource, required GemCameraPlayerStatus status, Camera? camera, DataSourceListener? listener})
Creates a new immutable camera player value with the specified state.

Properties

camera Camera?
The latest camera frame data received from the data source.
final
dataSource DataSource
The data source providing camera frame data to the player.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status GemCameraPlayerStatus
The current playback status of the camera player.
final

Methods

copyWith({DataSource? dataSource, GemCameraPlayerStatus? status, Camera? camera, DataSourceListener? listener}) GemCameraPlayerValue
Creates a copy of this value with optionally updated fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited