InputValidator class

Constructors

InputValidator.init({String? rules, required dynamic value, Map<String, dynamic>? messages, bool multiErrors = false})
validator initializer

Properties

hashCode int
The hash code for this object.
no setterinherited
multiErrors bool
Get errors in a List<String>[] or false for first error as String, default is false.
final
rules String?
Validation rules
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The given payload
final

Methods

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

Operators

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

Static Methods

builder({required Map<String, FieldData> fields}) → _Builder
init the form fields with rules
make({String? rules, required dynamic value, Map<String, dynamic>? messages, bool multiErrors = false}) → dynamic
validate a field with given rules