getPlatformVersion method
The function getPlatformVersion
returns the platform version as a String
using the
methodChannel
in Dart.
@returns The method is returning a Future object that resolves to a String or null value.
Implementation
@override
Future<String?> getPlatformVersion() async {
final version =
await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
}