PlayerPatch class final

PATCH /venues/{venueId}/players/{playerId} (merge-patch; playback is last-writer-wins, no If-Match).

Annotations
  • @immutable

Constructors

PlayerPatch({double? rate, bool? loop, double? volume, double? opacity, double? brightness, double? rotation, Map<String, Object?> extra = const {}})
Creates a PlayerPatch.
const
PlayerPatch.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

brightness → double?
0..1 (brightness, linear volume gain, progress).
final
extra → Map<String, Object?>
Members this version does not model (incl. x-* extensions and explicit nulls); written back by toJson.
final
hashCode → int
The hash code for this object.
no setteroverride
loop → bool?
loop member.
final
opacity → double?
0..1 (brightness, linear volume gain, progress).
final
rate → double?
playback rate, 1 = normal
final
rotation → double?
rotation member.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
volume → double?
0..1 (brightness, linear volume gain, progress).
final

Methods

copyWith({double? rate, bool? loop, double? volume, double? opacity, double? brightness, double? rotation, Map<String, Object?>? extra}) → PlayerPatch
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