changePower method

Future<void> changePower(
  1. String id,
  2. String power
)

Implementation

Future<void> changePower(String id, String power) async {
  final res = await client.setState(
    Selector.id(id),
    power: power,
  );
  print(res);
}