LightDimmingDelta class

Represents the change in the dim level value for a light.

Constructors

LightDimmingDelta({required LightDimmingDeltaAction action, required double? delta})
Creates a LightDimmingDelta object.
LightDimmingDelta.empty()
Creates an empty LightDimmingDelta object.
LightDimmingDelta.fromJson(Map<String, dynamic> dataMap)
Creates a LightDimmingDelta object from the JSON response to a GET request.
factory

Properties

action LightDimmingDeltaAction
Describes the action be taken with a light's dim level.
getter/setter pair
delta double?
Brightness percentage of full-scale increase delta to current dim level.
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

Methods

copyWith({LightDimmingDeltaAction? action, double? delta = -1.0, bool copyOriginalValues = true}) LightDimmingDelta
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