flag<T> method

bool flag<T>(
  1. String key, [
  2. T? def,
  3. TypeElementParser? parser
])

Implementation

bool flag<T>(String key, [T? def, TypeElementParser? parser]) {
  if (_flags.contains(key)) return true;
  var keyLC = normalizeKey(key);
  return _flags.contains(keyLC);
}