belowMinAppVersion method

bool belowMinAppVersion()

Is installed version below minimum app version?

Implementation

bool belowMinAppVersion() {
  var rv = false;
  if (minAppVersion != null) {
    try {
      final minVersion = Version.parse(minAppVersion!);
      final installedVersion = Version.parse(_installedVersion!);
      rv = installedVersion < minVersion;
    } catch (e) {
      if (debugLogging) {
        if (kDebugMode) {
          print(e);
        }
      }
    }
  }
  return rv;
}