validateWithException method

void validateWithException(
  1. String value
)

Implementation

void validateWithException(String value) {
  final err = validate(value);
  if(err != null) {
    throw AFException("Invalid value $value for $name: $err");
  }
}