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, Bridge? bridge})
- Creates a Resource object.
- Resource.empty()
- Creates an empty Resource object.
Properties
- bridge ↔ Bridge?
-
The bridge that this resource is associated with.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hueNetwork ↔ HueNetwork?
-
The HueNetwork that this resource is associated with.
getter/setter pair
- 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
-
getRelativeAsResource(
Relative relative) → Resource -
Returns a Resource object that represents the
relative
of this Resource. -
getRelativesAsResources(
List< Relative> relatives) → List<Resource> -
Returns a list of Resource objects that represent the
relatives
of this Resource. -
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