DoxValidator class

Constructors

DoxValidator.new(Map<String, dynamic> data)

Properties

data Map<String, dynamic>
request data
final
errors Map<String, String>
get list of error messages
no setter
hasError bool
check validation has errors
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCustomRule(String ruleName, {required String message, required bool fn(Map<String, dynamic>, dynamic, String?)}) → void
add custom rule
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMessages(Map<String, String> messages) → void
set custom validator messages
toString() String
A string representation of this object.
inherited
validate(Map<String, String> rules) → void
validate your data

Operators

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