ValidasiField<T, V> class abstract

A FieldDescriptor that can validate its own values.

Inheritance
Implementers

Constructors

ValidasiField()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The field name as it appears in the model (e.g. "email").
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

extract(T owner) → V?
Extract the field value from a concrete model instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(V? value) → ValidasiResult<V>
Validate value using the rules defined for this field.
validateAsync(V? value) → Future<ValidasiResult<V>>
Async counterpart of validate. By default it delegates to validate; generated classes override this to support async rules (e.g. @AsyncInline).

Operators

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