getPlatformVersion method
Retrieves the current platform version.
This method calls the native 'getPlatformVersion' method through the method channel. It's primarily used for testing connectivity with the platform code.
Returns a Future containing the platform version as a String, or null if failed.
Implementation
@override
Future<String?> getPlatformVersion() async {
final version = await methodChannel.invokeMethod<String>(
'getPlatformVersion',
);
return version;
}