isPackageInstalled method
Implementation
@override
Future<bool> isPackageInstalled(String packageName) async {
try {
final result = await methodChannel.invokeMethod<bool>(
'isPackageInstalled',
{'packageName': packageName},
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error checking package installation: ${e.message}');
return false;
}
}