Scene class abstract

Constructors

Scene([dynamic updates(SceneBuilder b)])
factory
Scene.fromJson(Map json, {String? id})
factory

Properties

appData AppData?
App specific data linked to the scene. Each individual application should take responsibility for the data written in this field.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
The id of the scene being modified or created.
no setter
lastUpdated String?
UTC time the scene has been created or has been updated by a PUT. Will be null when unknown (legacy scenes).
no setter
lastUpdatedDate DateTime
no setter
lightIds → BuiltList<String>?
The light ids which are in the scene. This array can empty. As of 1.11 it must contain at least 1 element. If an invalid lights resource is given, error 7 is returned and the scene is not created.
no setter
locked bool?
Indicates that the scene is locked by a rule or a schedule and cannot be deleted until all resources requiring or that reference the scene are deleted.
no setter
name String?
Human readable name of the scene. Is set to
no setter
owner String?
Whitelist user that created or modified the content of the scene. Note that changing name does not change the owner.
no setter
picture String?
no setter
recycle bool?
Indicates whether the scene can be automatically deleted by the bridge. Only available by POST. Set to 'false' when omitted. Legacy scenes created by PUT are defaulted to true. When set to 'false' the bridge keeps the scene until deleted by an application.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sceneLights → BuiltList<Light>?
no setter
version int?
Version of scene document:
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(SceneBuilder)) Scene
Rebuilds the instance.
inherited
toBridgeObject({String? action}) Map
toBuilder() SceneBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<Scene>
no setter