build method

String? build()

Implementation

String? build() {
  // if any of the unless rules dont proceed to checking the rules below
  if (!_checkUnless(value)) return null;

  for (ValidationRule r in _rules) {
    String? err = r(value);
    if (err != null) return err;
  }

  return null;
}