ArraySchema constructor

ArraySchema([
  1. dynamic valueType,
  2. bool? req,
  3. 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

Implementation

ArraySchema([dynamic valueType, bool? req, List<IValidationRule>? rules])
    : super(req, rules) {
  _valueType = valueType;
}