isUpdateAvailable static method

Future<bool> isUpdateAvailable(
  1. String currentVersion
)

Check if an update is available

Implementation

static Future<bool> isUpdateAvailable(String currentVersion) async {
  final latestVersion = await getLatestCLIVersion();
  if (latestVersion == null) return false;

  return compareVersions(currentVersion, latestVersion) < 0;
}