LightDynamics class

The dynamics properties of a light.

Constructors

LightDynamics({required String status, required List<String> statusValues, required double speed, required bool speedValid, int? durationMilliseconds})
Creates a LightDynamics object.
LightDynamics.empty()
Creates an empty LightDynamics object.
LightDynamics.fromJson(Map<String, dynamic> dataMap)
Creates a LightDynamics object from the JSON response to a GET request.
factory

Properties

durationMilliseconds int?
Duration of a light transition or timed effects in ms.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Speed of dynamic palette or effect.
getter/setter pair
speedValid bool
Whether or not the value presented in speed is valid.
final
status String
Current status of the lamp with dynamics.
final
statusValues List<String>
Statuses in which a lamp could be when playing dynamics.
final

Methods

copyWith({String? status, List<String>? statusValues, double? speed, bool? speedValid, int? durationMilliseconds = -1, bool copyOriginalValues = true}) LightDynamics
Returns a copy of this object with its field values replaced by the ones provided to this method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshOriginals() → void
Called after a successful PUT request, this method refreshed the "original" data in this object.
toJson({OptimizeFor optimizeFor = OptimizeFor.put}) Map<String, dynamic>
Converts this object into JSON format.
toString() String
A string representation of this object.
override

Operators

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