HueHttpRepo class
This is the way to communicate with Flutter Hue HTTP services.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
delete(
{required String bridgeIpAddr, required String pathToResource, required String applicationKey, required ResourceType? resourceType}) → Future< Map< String, dynamic> ?> - Delete an existing resource.
-
get(
{required String bridgeIpAddr, String? pathToResource, required String applicationKey, required ResourceType? resourceType}) → Future< Map< String, dynamic> ?> - Fetch an existing resource.
-
getTargetUrl(
{required String bridgeIpAddr, ResourceType? resourceType, String? pathToResource}) → String - Returns a properly formatted target URL.
-
post(
{required String bridgeIpAddr, String? pathToResource, required String applicationKey, required ResourceType? resourceType, required String body}) → Future< Map< String, dynamic> ?> - Create a new resource.
-
put(
{required String bridgeIpAddr, String? pathToResource, required String applicationKey, required ResourceType? resourceType, required String body}) → Future< Map< String, dynamic> ?> - Update an existing resource.