Scene class
Represents a Philips Hue scene.
Constructors
-
Scene({required ResourceType type, required String id, String idV1 = "", required List<
SceneAction> actions, required SceneRecall recall, required SceneMetadata metadata, required Relative group, required ScenePalette palette, required double speed, required bool autoDynamic}) - Creates a Scene object.
- Scene.empty()
- Creates an empty Scene object.
-
Scene.fromJson(Map<
String, dynamic> dataMap) -
Creates a Scene object from the JSON response to a GET request.
factory
Properties
-
actions
↔ List<
SceneAction> -
List of actions to be executed synchronously on recall.
getter/setter pair
- autoDynamic ↔ bool
-
Whether or not to automatically start the scene dynamically on active
recall.
getter/setter pair
- group → Relative
-
Group associated with this Scene.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier representing a specific resource instance.
finalinherited
- idV1 → String
-
Clip v1 resource identifier.
final
- metadata ↔ SceneMetadata
-
Metadata about this scene.
getter/setter pair
- originalType → ResourceType
-
no setterinherited
- palette ↔ ScenePalette
-
Group of colors that describe the palette of colors to be used when
playing dynamics.
getter/setter pair
- recall ↔ SceneRecall
-
The recall settings for a scene.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed ↔ double
-
Speed of dynamic palette for this scene.
getter/setter pair
- type ↔ ResourceType
-
Type of the supported resource.
getter/setter pairinherited
Methods
-
copyWith(
{ResourceType? type, String? id, String? idV1, List< SceneAction> ? actions, SceneRecall? recall, SceneMetadata? metadata, Relative? group, ScenePalette? palette, double? speed, bool? autoDynamic, bool copyOriginalValues = true}) → Scene - 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.
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