receiveFromFlutter
Future<void> receiveFromFlutter (String text)
Implementation
Future<void> receiveFromFlutter(String text) async {
try {
final String result =
await _channel.invokeMethod('receiveFromFlutter', {"text": text});
print("Result from native: $result");
} on PlatformException catch (e) {
print("Error from native: $e.message");
}
}