LIFXClient class
Client to access the LIFX HTTP API.
LIFX client that takes an apiKey to access the LIFX HTTP API endpoints listed at https://api.developer.lifx.com/docs/
Constructors
- LIFXClient(String apiKey, {String endpoint = 'https://api.lifx.com/v1/lights'})
Properties
Methods
-
listLights(
Selector selector) → Future< List< LIFXBulb> > -
API call to list all lights by default or
selector
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setState(
Selector selector, {String? power, double? brightness, double? duration, double? infrared, bool? fast, LIFXColor? color}) → Future< SetStateResponse> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited