getPlatformVersion method
Retrieves the platform version as a String.
This method should be overridden by platform-specific implementations to return the current platform version. If not implemented, an UnimplementedError is thrown.
Returns a Future that completes with a string containing the platform
version, or null
if unavailable.
Implementation
@override
Future<String?> getPlatformVersion() async {
final version =
await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
}