PropertySchema constructor

PropertySchema([
  1. String? name,
  2. dynamic type,
  3. bool? req,
  4. List<IValidationRule>? rules,
])

Creates a new validation schema and sets its values.

  • name (optional) a property name
  • type (optional) a property type
  • required (optional) true to always require non-null values.
  • rules (optional) a list with validation rules.

See IValidationRule See TypeCode

Implementation

PropertySchema(
    [String? name, dynamic type, bool? req, List<IValidationRule>? rules])
    : super(req, rules) {
  _name = name;
  _type = type;
}