evaluate method

bool evaluate(
  1. bool has(
    1. String
    )
)

Implementation

bool evaluate(bool Function(String) has) {
  final single = _single;
  if (single != null) return has(single);
  if (keys.isEmpty) return true;
  return requireAll ? keys.every(has) : keys.any(has);
}