FieldRule constructor

FieldRule({
  1. required YamlValueType type,
  2. bool required = false,
  3. List<String>? allowedValues,
  4. RegExp? matchesPattern,
  5. Map<String, FieldRule>? nestedFields,
  6. Map<RegExp, FieldRule?>? recursiveMapSchema,
})

Implementation

FieldRule({
  required this.type,
  this.required = false,
  this.allowedValues,
  this.matchesPattern,
  this.nestedFields,
  this.recursiveMapSchema,
});