NotEmptyListValidator<T> class
Checks whether a given value isn't empty.
- Inheritance
-
- Object
- Validator<
List< T> > - ValidatorWithStaticError<
List< T> > - NotEmptyListValidator
Constructors
- NotEmptyListValidator(String error)
Properties
Methods
-
innerValidate(
List? value) → bool -
Returns true or false depending on the validation process. This method
is then used by the ValidatorWithStaticError.validate method to return
a static error if the result is false.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
List< T> ? value) → String? -
This method should return null if the field is valid, a string corresponding
to the error otherwise.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited