setup method
void
setup()
Implementation
void setup() {
_methodChannel.setMethodCallHandler(
(call) {
_logger.d("MethodCall: $call");
switch (call.method) {
case _receivingEventCommandReceived:
final arguments = Map<String, String?>.from(call.arguments as Map);
final value = arguments['command']!;
final commands = realwearVoiceCommandInjector<VoiceCommandManager>().fromValue(value);
for (final command in commands) {
_eventBus.fire(VoiceCommandReceivedEvent(command));
}
break;
}
return Future.value();
},
);
}