PropertyRuleBuilder<T, V> class

Rule builder for fluent property validation.

Constructors

PropertyRuleBuilder(V selector(T model), String propertyName)
Creates a PropertyRuleBuilder.

Properties

hashCode → int
The hash code for this object.
no setterinherited
propertyName → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selector → V Function(T model)
final

Methods

email([String? customMessage]) → PropertyRuleBuilder<T, V>
Asserts that a string property is a valid email format.
greaterThan(num target, [String? customMessage]) → PropertyRuleBuilder<T, V>
Asserts that a number is greater than target.
minLength(int min, [String? customMessage]) → PropertyRuleBuilder<T, V>
Asserts that a string property has at least min characters.
must(bool predicate(V value), String errorMessage) → PropertyRuleBuilder<T, V>
Custom predicate validator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEmpty([String? customMessage]) → PropertyRuleBuilder<T, V>
Asserts that the field is not null or empty.
toString() → String
A string representation of this object.
inherited

Operators

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