ValidationError extension type

A validation error with detailed information about the location of the error.

on

Constructors

ValidationError.new(ValidationErrorType error, {required List<String> path, String? details})
factory
ValidationError.fromMap(Map<String, Object?> _value)
ValidationError.typeMismatch({required List<String> path, required Type expectedType, required Object? actualValue})
factory

Properties

details String?
Additional details about the error (optional).
no setter
error ValidationErrorType
The type of validation error that occurred.
no setter
path List<String>
The path to the object that had the error.
no setter

Methods

toErrorString() String