changeBrightness method

Future<void> changeBrightness(
  1. String id,
  2. String brightness
)

Implementation

Future<void> changeBrightness(String id, String brightness) async {
  final res = await client.setState(
    Selector.id(id),
    brightness: double.parse(brightness),
  );
  print(res);
}