ValidationError class

Constructors

ValidationError({required JsonPath path, String? message, String? debugMessage, String? code, String? keyword, List? arguments = const [], dynamic value})
ValidationError.ofJson(dynamic json)
ValidationError.ofString(JsonPath path, String? message, {String? debugMessage, List? arguments = const []})

Properties

arguments List?
final
code String?
final
debugMessage String?
final
hashCode int
The hash code for this object.
no setterinherited
keyword String?
final
message String?
final
path → JsonPath
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
Whether the server generated this error. Generally speaking, we won't clear out non-server errors because it usually indicates that there's something wrong with the input.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
relocate(JsonPath basePath) ValidationError
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

formatCode → const String
parsedCode → const String
requiredCode → const String
typeMismatchCode → const String