getPackageInfo method
Retrieves detailed information about the app with the given packageName
.
Returns an AppPackage object containing the app's details.
Implementation
@override
Future<AppPackage> getPackageInfo(String packageName) {
return methodChannel
.invokeMethod("getPackageInfo", {"package_name": packageName}).then(
(value) => AppPackage.fromMap(Map<String, dynamic>.from(value)));
}