getPlatformVersion method

  1. @visibleForTesting
Future<String?> getPlatformVersion()

Retrieves the platform version from the native platform.

Returns a String containing the platform version.

Implementation

@visibleForTesting
Future<String?> getPlatformVersion() async {
  final version =
      await methodChannel.invokeMethod<String>('getPlatformVersion');
  return version;
}