firstError property
ValidationError
get
firstError
Implementation
ValidationError get firstError {
if (!isError) {
throw Exception('There is no error');
}
return errors.first;
}
ValidationError get firstError {
if (!isError) {
throw Exception('There is no error');
}
return errors.first;
}