PropertyValidator<T, TProperty> class
abstract
- Available Extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensure(
bool validationPredicate(TProperty t)) → PropertyValidator< T, TProperty> -
ensureT(
bool validationPredicate(T value)) → PropertyValidator< T, TProperty> -
isOptional(
) → PropertyValidator< T, TProperty> -
isRequired(
) → PropertyValidator< T, TProperty> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
useValidationRule(
ValidationRule< TProperty> validationRule) → PropertyValidator<T, TProperty> -
useValidator(
Validator< TProperty> validator) → PropertyValidator<T, TProperty> -
when(
bool conditionPredicate(T value)) → PropertyValidator< T, TProperty> -
withMessage(
{String? message, String messageFunc()?}) → PropertyValidator< T, TProperty>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited