error property

The type of validation error that occurred.

Implementation

ValidationErrorType get error => ValidationErrorType.values.firstWhere(
  (value) => value.name == _value[Keys.error],
);