TextureSource class final
A live source seen by the engine (GET /venues/{venueId}/texture-sources, event textureSource.state).
- Annotations
-
- @immutable
Constructors
-
TextureSource({required String id, required TextureTransport transport, required String sender, String? application, required TextureSourceStatus status, int? width, int? height, double? fps, String? pixelFormat, String? assetId, String? node, String? lastSeen, Map<
String, Object?> extra = const {}}) -
Creates a TextureSource.
const
-
TextureSource.fromJson(Map<
String, Object?> json, [String path = '']) -
Decodes
json; throws FormatException (with the JSON path) on a missing required member or a type mismatch. Unknown members and explicit nulls go to extra.factory
Properties
- application → String?
-
applicationmember.final - assetId → String?
-
the stream asset bound to this source, if any
final
-
extra
→ Map<
String, Object?> -
Members this version does not model (incl.
x-*extensions and explicit nulls); written back by toJson.final - fps → double?
-
frames per second measured by the engine
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → int?
-
heightmember.final - id → String
-
server-assigned, stable while the sender keeps its name
final
- lastSeen → String?
-
RFC 3339 UTC with milliseconds, e.g. 2026-10-19T12:00:00.000Z.
final
- node → String?
-
node whose engine sees the source
final
- pixelFormat → String?
-
pixelFormatmember.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → String
-
sendermember.final - status → TextureSourceStatus
-
statusmember.final - transport → TextureTransport
-
Shared GPU texture or spare network transport of a live source. Open list.
final
- width → int?
-
widthmember.final
Methods
-
copyWith(
{String? id, TextureTransport? transport, String? sender, String? application, TextureSourceStatus? status, int? width, int? height, double? fps, String? pixelFormat, String? assetId, String? node, String? lastSeen, Map< String, Object?> ? extra}) → TextureSource - A copy with the given members replaced (a member cannot be reset to null this way).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Encodes to JSON (absent members omitted, extra merged back).
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override