Resource class abstract

Represents a Philips Hue resource.

Implementers

Constructors

Resource.new({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
hasUpdate bool
Whether or not this object has been updated.
no setter
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