ArraySchema constructor Null safety
- [dynamic valueType,
- bool? req,
- List<
IValidationRule> ? rules]
Creates a new instance of validation schema and sets its values.
valueType
a type of array elements. Null means that elements may have any type.required
(optional) true to always require non-null values.rules
(optional) a list with validation rules.
See TypeCode