getPackageInfo method
Retrieve overall information about a package that is installed on the system and is available to the current user.
Implementation
@override
Future<Package> getPackageInfo(
String packageIdentifier, [
Options options = const Options(),
]) async {
final _options = options.copyWith(packageIdentifier: packageIdentifier);
final map = await _kChannel.invokeMapMethod<String, dynamic>(
'getPackageInfo',
_options.toMap,
);
return Package.fromMap(map ?? {});
}