isApplicable method

bool isApplicable(
  1. String currentAppVersion
)

Whether this patch should be applied to current app version

Implementation

bool isApplicable(String currentAppVersion) {
  if (minAppVersion != null && _compareVersions(currentAppVersion, minAppVersion!) < 0) {
    return false;
  }
  if (maxAppVersion != null && _compareVersions(currentAppVersion, maxAppVersion!) > 0) {
    return false;
  }
  return true;
}