getPlatformVersion static method

Future<String?> getPlatformVersion()

Get the platform version string

Implementation

static Future<String?> getPlatformVersion() async {
  if (kIsWeb) {
    return 'Web';
  }

  try {
    return await _channel.invokeMethod<String>('getPlatformVersion');
  } on PlatformException {
    return null;
  } on MissingPluginException {
    return null;
  }
}