validateOrThrow method

void validateOrThrow(
  1. Object value
)

Implementation

void validateOrThrow(Object value) {
  final result = validate([], value);
  if (!result.isValid) {
    throw SchemaValidationException(result);
  }
}