getPlatformVersion method

Future<String?> getPlatformVersion()

Gets the current platform version.

This is primarily used for testing purposes to verify connectivity with platform-specific code.

Implementations should override this method to provide platform-specific functionality. Returns a Future containing the platform version as a String.

Implementation

Future<String?> getPlatformVersion() {
  throw UnimplementedError('platformVersion() has not been implemented.');
}