LightDimmingFull class

Represents the current brightness and dimming capabilities of a light.

Inheritance

Constructors

LightDimmingFull({required double brightness, required double minDimLevel})
Creates a LightDimmingFull object.
LightDimmingFull.empty()
Creates an empty LightDimmingFull object.
LightDimmingFull.fromJson(Map<String, dynamic> dataMap)
Creates a LightDimmingFull object from the JSON response to a GET request.
factory

Properties

brightness double
Brightness percentage.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
minDimLevel double
Percentage of the maximum lumen the device outputs on minimum brightness.
final
originalBrightness double
The value of brightness when this object was instantiated.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? brightness, double? minDimLevel, bool copyOriginalValues = true}) LightDimmingFull
Returns a copy of this object with its field values replaced by the ones provided to this method.
override
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.
inherited
toJson({OptimizeFor optimizeFor = OptimizeFor.put}) Map<String, dynamic>
Converts this object into JSON format.
override
toString() String
A string representation of this object.
override

Operators

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