isMajorBump method

bool isMajorBump(
  1. String from,
  2. String to
)

Check if upgrading from one version to another is a major bump.

Implementation

bool isMajorBump(String from, String to) {
  final fromVer = Version.parse(from);
  final toVer = Version.parse(to);
  return toVer.major > fromVer.major;
}