fetchLatestRelease static method
Fetch the latest release for a package
Implementation
static Future<PackageVersion?> fetchLatestRelease(String package) async {
try {
final info = await _pub.packageInfo(package);
return info.latest;
} catch (e) {
return null;
}
}