setPlatformParams static method

Future<void> setPlatformParams(
  1. String platform,
  2. String sdkVersion
)

Implementation

static Future<void> setPlatformParams(String platform, String sdkVersion) async{
  try{
    final arguments = {
      "platform": platform,
      "sdkVersion": sdkVersion
    };
    final result = await channel.invokeMethod('setPlatformParams', arguments);
    debugPrint("result is $result");
  } on PlatformException catch (e) {
    debugPrint("Error: $e");
  } catch (e) {
    debugPrint("Error: $e");
  }
}