getPlatformVersion method

Future<String?> getPlatformVersion()

Returns the current platform version.

This method is used to test that method channels are working correctly. Each platform implementation should override this method to return the platform version.

@return The platform version as a string (e.g., "Android 12" or "iOS 15.0").

Implementation

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