RegularExpression validator permits you to check that a string value is accordance with provided regular expression.
- criticityLevel → int
This reprensents the order of execution for validation. If a validator returns false, the queue will stop on this point. Nexts validators won't be fired.
- error → String
error is the custom error to return in case of invalidation.
- expression → String
expression is the regular expression to use.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
TModel>( String value, TModel model) → bool
Verify if the model is valid compared to the current validator You must add
valueparameter, this one is your current property to validate.
modelparameter is also required, even if your custom validator won't use it. It reprensents your full object model with all values. Maybe you would validate a property in comparison to others.override
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
A string representation of this object. [...]