isBreakingUpdate static method

bool isBreakingUpdate({
  1. required Version currentVersion,
  2. required Version latestVersion,
})

Returns true if the latest CLI version is a breaking update from the current

Implementation

static bool isBreakingUpdate({
  required final Version currentVersion,
  required final Version latestVersion,
}) {
  return currentVersion.nextBreaking <= latestVersion;
}