toggle method

  1. @override
Future<void> toggle({
  1. required List<Phone2Led> channels,
})
override

Implementation

@override
Future<void> toggle({
  required List<Phone2Led> channels,
}) async {
  final builderId = await super.sdkInterface.builder();
  for (final channel in channels) {
    await super.sdkInterface.channel(id: builderId, channel: channel.value);
  }
  await super.sdkInterface.build(id: builderId);
  await super.sdkInterface.toggle(id: builderId);
}