ArraySchema constructor Null safety

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