LightPowerUp class
Represents the properties to configure powerup behavior of a light source.
Constructors
- LightPowerUp({required LightPowerUpPreset preset, required bool isConfigured, required LightPowerUpOn on, required LightPowerUpDimming dimming, required LightPowerUpColor color})
- Creates a LightPowerUp object.
- LightPowerUp.empty()
- Creates an empty LightPowerUp object.
-
LightPowerUp.fromJson(Map<
String, dynamic> dataMap) -
Creates a LightPowerUp object from the JSON response to a GET request.
factory
Properties
- color ↔ LightPowerUpColor
-
Describes the color behavior of the light source on power up.
getter/setter pair
- dimming ↔ LightPowerUpDimming
-
Describes the dimming behavior of the light source on power up.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- isConfigured → bool
-
Whether or not the shown values have been configured in the light source.
final
- isOn → bool
-
Whether or not this light is on.
no setter
- on ↔ LightPowerUpOn
-
On/Off state of the light on=true, off=false.
getter/setter pair
- preset ↔ LightPowerUpPreset
-
When setting the custom preset the additional properties can be set.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{LightPowerUpPreset? preset, bool? isConfigured, LightPowerUpOn? on, LightPowerUpDimming? dimming, LightPowerUpColor? color, bool copyOriginalValues = true}) → LightPowerUp - 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