getPlatformVersion method
Retrieves the platform version from the native platform.
Implementation
@override
Future<String?> getPlatformVersion() async {
try {
final version =
await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
} on PlatformException catch (e) {
debugPrint('Failed to get platform version: ${e.message}');
return null;
}
}