getPlatformVersion method

Future<double> getPlatformVersion()

Implementation

Future<double> getPlatformVersion() async {
  if (!WebRTC.platformIsMobile) return 0;

  final String? platformVersion = await _nativeChannel.invokeMethod(
    "getPlatformVersion",
  );

  return double.parse((platformVersion ?? '0').split('.').first);
}