getPlatformVersion method
Returns the platform version from the native platform.
Calls the method 'getPlatformVersion' on the native side and returns
the result as a String. Throws PlatformException if the call fails.
Implementation
@override
Future<String?> getPlatformVersion() async {
final version =
await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
}