flagOr<T> method

bool? flagOr<T>(
  1. String key,
  2. bool? def
)

Implementation

bool? flagOr<T>(String key, bool? def) {
  if (_flags.contains(key)) return true;
  var keyLC = normalizeKey(key);
  var found = _flags.contains(keyLC);
  if (found) return true;
  return def;
}