getPlatformVersion method
Implementation
@override
Future<String?> getPlatformVersion() async {
try {
if (!Platform.isAndroid) throw _unsupportedPlatformException();
return await methodChannel.invokeMethod<String>('getPlatformVersion');
} on PlatformException catch (e) {
debugPrint('Error getting platform version: ${e.message}');
return null;
}
}