setPlatform static method
Implementation
static Future<void> setPlatform(String platfm) async {
try {
await platform.invokeMethod(
'setPlatform', <String, String>{'platfm': platfm});
} on PlatformException catch (e) {
showToast(e.message.toString());
}
}