-
-
Save inanant/ca0d6157d0d29d14236f7442349fbf05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NativeBridge { | |
static const MethodChannel _channel = MethodChannel('com.example/native'); | |
static void getNativeData(String name) async { | |
await _channel.invokeMethod('getNativeData', <String, String>{ | |
"name": name, | |
}).then((value) => print(value)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment