ValidationFailure class

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

ValidationFailure({String? propertyName, String? errorMessage, dynamic attemptedValue, dynamic customState, Severity? severity, String? errorCode, Map<String, dynamic>? formattedMessagePlaceholderValues})
ValidationFailure.fromJson(Map<String, dynamic> json)
factory

Properties

attemptedValue → dynamic
final
customState → dynamic
final
errorCode String?
final
errorMessage String?
final
formattedMessagePlaceholderValues Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setteroverride
propertyName String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity Severity?
final

Methods

copyWith({String? propertyName, String? errorMessage, dynamic attemptedValue, dynamic customState, Severity? severity, String? errorCode, Map<String, dynamic>? formattedMessagePlaceholderValues}) ValidationFailure

Available on ValidationFailure, provided by the $ValidationFailureExtension extension

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

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

fromJsonFactory → const ValidationFailure Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(ValidationFailure instance)