hasUpdate method

bool hasUpdate(
  1. String regionName,
  2. String latestSnapshotVersion
)

Check if an update is available for a region.

Compares the stored snapshot version with the latest available version. Returns false for bundled files (they don't get updated).

Implementation

bool hasUpdate(String regionName, String latestSnapshotVersion) {
  final current = getByRegion(regionName);
  if (current == null) return false;
  if (current.isBundled) {
    return false; // Don't suggest updates for bundled files
  }
  return current.snapshotVersion != latestSnapshotVersion;
}