throwOnError method

void throwOnError(
  1. ErrorList errors
)

Implementation

void throwOnError(ErrorList errors) {
  if (errors.hasErrors) throw errors;
}