ValidationMiddleware<T> class

Validation middleware - validates values.

Inheritance

Constructors

ValidationMiddleware({required bool validator(T value), T fallback(T invalidValue)?})

Properties

fallback → T Function(T invalidValue)?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator bool Function(T value)
final

Methods

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

Operators

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