sendInputData method
Implementation
@override
Future<String?> sendInputData(List<int> input) async {
try {
final out = await methodChannel.invokeMethod('sendData', {
"inputData": input,
});
debugPrint("Data sent $input $out");
return out;
} on PlatformException catch (e) {
debugPrint("Failed: ${e.message}");
return "Error";
}
}