getPlatformVersion method
Returns the platform version string.
Example: Android or iOS version string.
Implementation
@override
Future<String?> getPlatformVersion() async {
try {
final String? version = await _methodChannel.invokeMethod(
'getPlatformVersion',
);
return version;
} on PlatformException catch (e) {
logger.e("Failed to get platform version: '${e.message}'.");
return null;
}
}