You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, validators are build once during initialize(). Often you can require input to be notNull based on some condition, example based on different input's value.
To do this, in current version you have to implement custom validation with satisfy() or custom e.g
v..satisfy((value) {
// if other input is 1, do not require validationif(otherInput.value ==1) returntrue;
return value !=null;
}
Include argument
Each validator could accept "include" argument which will determine if particular validation part should be considered through validation process.
Right now, validators are build once during initialize(). Often you can require input to be notNull based on some condition, example based on different input's value.
To do this, in current version you have to implement custom validation with
satisfy()
orcustom
e.gInclude argument
Each validator could accept "include" argument which will determine if particular validation part should be considered through validation process.
The text was updated successfully, but these errors were encountered: