element method

bool element(
  1. E? element,
  2. covariant C collective, {
  3. Function? action,
})

Validates an element against this rule.

Implementation

bool element(E? element, covariant C collective, {Function? action}) {
  try {
    return _rule(element, collective, action: action, user: _user);
  } catch(_) {}
  return true;
}