ValidationError constructor

const ValidationError({
  1. required String message,
  2. String? field,
  3. required ValidationErrorType type,
  4. String? details,
})

Creates a new ValidationError instance.

Implementation

const ValidationError({
  required this.message,
  this.field,
  required this.type,
  this.details,
});