Resource class abstract
Represents a Philips Hue resource.
- Implementers
- BehaviorInstance
- BehaviorScript
- Bridge
- BridgeHome
- Button
- Device
- DevicePower
- Entertainment
- EntertainmentConfiguration
- GeofenceClient
- Geolocation
- GroupedLight
- Homekit
- Light
- LightLevel
- Matter
- MatterFabric
- Motion
- Relative
- RelativeRotary
- Room
- Scene
- SmartScene
- Temperature
- ZgpConnectivity
- ZigbeeConnectivity
- ZigbeeDeviceDiscovery
- Zone
Constructors
- Resource({required ResourceType type, required String id})
- Creates a Resource object.
- Resource.empty()
- Creates an empty Resource object.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier representing a specific resource instance.
final
- originalType → ResourceType
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ ResourceType
-
Type of the supported resource.
getter/setter pair
Methods
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited