compareVersions function

int compareVersions (
  1. String a,
  2. String b
)

Implementation

int compareVersions(String a, String b) {
  final versionA = Version.parse(a);
  final versionB = Version.parse(b);

  return versionA.compareTo(versionB);
  // return Version.prioritize(versionA, versionB);
}