chekcXidEnvironment static method

bool chekcXidEnvironment(
  1. String xid
)

Implementation

static bool chekcXidEnvironment(String xid) {
  // create RegExp with pattern
  RegExp xidReg = RegExp(xidPattren);
  if (xid.length == LengthId && xidReg.hasMatch(xid)) {
    return true;
  } else {
    Flagship.logger(Level.INFO, "The environmentId : \(xid) is not valide ");
    return false;
  }
}