ConstrainViolation class

Class that represent a fail validation (Details and examples in docs)

Constructors

ConstrainViolation({required dynamic value, required String fieldName, required String message})
const

Properties

fieldName String
Nombre del campo en el que fallo la validacion Si forma parte de un objeto anidado o una lista o map o similar, el nombre del field sera una concatenacion de todos los field-name desde el root hasta el campos especifico
final
hashCode int
The hash code for this object.
no setteroverride
message String
El mensaje de la validacion fallida
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
Valor con el que fallo la validacion
final

Methods

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

Operators

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