setCommands method

Future<Unit> setCommands(
  1. Set<VoiceCommand> commands
)

Implementation

Future<Unit> setCommands(Set<VoiceCommand> commands) async {
  _logger.d("VoiceCommands: $commands");
  final values = commands.map((e) => e.value).toSet().join('|');
  await _methodChannel.invokeMethod(_sendingEventSetCommands, {"commands": values});
  return unit;
}