ValidaSet<T> class
Specification of the validation that should be executed over a given Set
- Inheritance
-
- Object
- ValidaField<
Set< T> > - ValidaSet
- Implemented types
Constructors
-
ValidaSet({int? minLength, int? maxLength, ValidaField<
T> ? each, List<ValidaError> customValidate(Set<T> )?, String? customValidateName}) -
const
-
ValidaSet.fromJson(Map<
String, Object?> map) -
factory
Properties
-
customValidate
→ List<
ValidaError> Function(Set<T> )? -
final
- customValidateName → String?
-
final
-
each
→ ValidaField<
T> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxLength → int?
-
final
- minLength → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variantType → ValidaFieldType
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
_T> ({required _T string(ValidaString), required _T num(ValidaNum), required _T date(ValidaDate), required _T duration(ValidaDuration), required _T list(ValidaList), required _T map(ValidaMap), required _T set(ValidaSet)}) → _T -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
fieldsSerde
→ const Map<
String, SerdeType>