check method

bool check(
  1. String? field, {
  2. bool contains = false,
})

Implementation

bool check(String? field, {bool contains = false}) {
  if (contains || this.contains) {
    return not ^ (field?.contains(value) ?? false);
  } else {
    return not ^ (field == value);
  }
}