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