RuleFor<T> class
Fluent rule builder for a single control inside a FormGroup.
It supports:
- composing multiple validators into one (first error wins)
- attaching cross-field dependencies (revalidate when other controls change)
Properties
Methods
-
compose(
FormFieldValidator< T> validator) → RuleFor<T> -
Adds a single
validatorto this rule chain. -
composeAll(
Iterable< FormFieldValidator< validators) → RuleFor<T> >T> -
Adds multiple
validatorsto this rule chain. -
dependsOn(
String anotherFieldName) → RuleFor< T> -
Declares that this rule depends on another control identified by
anotherFieldName. -
dependsOnAll(
Iterable< String> fieldNames) → RuleFor<T> - Declares multiple dependencies at once.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited