sendCommand method

  1. @override
Future<String?> sendCommand({
  1. required String message,
})
override

sendCommand call the native method to write the transmit data the argument message will be transmit

Implementation

@override
Future<String?> sendCommand({required String message}) async {
  final argument = {
    "message": message,
  };
  final version = await methodChannel.invokeMethod<String>(
      'embeddedSerial/send', argument);
  return version;
}