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

apiKey String
final
endpoint String
API Endpoint for the LIFX HTTP API
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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