LightPowerUpDimming class
Represents the dimming settings that should be applied to the light on power up.
- Inheritance
-
- Object
- LightDimming
- LightPowerUpDimming
Constructors
- LightPowerUpDimming({required LightPowerUpDimmingMode mode, required double brightness})
- Creates a LightPowerUpDimming object.
- LightPowerUpDimming.empty()
- Creates an empty LightPowerUpDimming object.
-
LightPowerUpDimming.fromJson(Map<
String, dynamic> dataMap) -
Creates a LightPowerUpDimming 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
- mode ↔ LightPowerUpDimmingMode
-
Dimming will set the brightness to the specified value after power up.
getter/setter pair
- 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(
{LightPowerUpDimmingMode? mode, double? brightness, bool copyOriginalValues = true}) → LightPowerUpDimming -
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.
override
-
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