getPlatformVersion method
Gets the platform version from the native Android platform.
Returns a Future that completes with the platform version as a String, or null if the platform version could not be determined.
This method is typically used for testing platform integration.
Implementation
@override
Future<String?> getPlatformVersion() async {
final version = await methodChannel.invokeMethod<String>(
'getPlatformVersion',
);
return version;
}