setPlatformParams static method

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

Implementation

static Future<void> setPlatformParams(
    {required String platform, required String sdkVersion}) async {
  try {
    final arguments = {"platform": platform, "sdkVersion": sdkVersion};
    await channel.invokeMethod('setPlatformParams', arguments);
  } on PlatformException catch (p) {
    _errorCallbackHandler(null, p, null, null);
  } catch (e) {
    _errorCallbackHandler(null, null, e, null);
  }
}