Validator constructor

Validator(
  1. Map<String, dynamic> schema,
  2. {Map<String, dynamic> defaultValues = const {},
  3. Map<String, dynamic> customErrorMessages = const {}}
)

Implementation

Validator(Map<String, dynamic> schema,
    {Map<String, dynamic> defaultValues = const {}, Map<String, dynamic> customErrorMessages = const {}}) {
  this.defaultValues.addAll(defaultValues ?? {});
  this.customErrorMessages.addAll(customErrorMessages ?? {});
  _importSchema(schema);
}