setPlatform static method

Future<void> setPlatform(
  1. String platfm
)

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());
  }
}