getPlatformVersion method

Future<String?> getPlatformVersion()

获取平台版本字符串。

Implementation

Future<String?> getPlatformVersion() async {
  try {
    return await _channel.invokeMethod<String>('getPlatformVersion');
  } catch (e) {
    _log('getPlatformVersion: $e');
    rethrow;
  }
}