needsUpdate method
Implementation
Future<(bool, String)> needsUpdate() async {
final latestVersion = await pubUpdater.getLatestVersion('barreler');
final match = packageVersion == latestVersion;
if (match) {
return (false, latestVersion);
}
if (isLocalVersion(current: packageVersion, latest: latestVersion)) {
return (false, latestVersion);
}
return (true, latestVersion);
}