PatternPropertiesRule constructor

const PatternPropertiesRule(
  1. List<(RegExp, SchemaRule)> patterns
)

Creates a rule from a list of (regex, sub-schema) pairs.

patterns is a list of (RegExp, SchemaRule) records. Each regex is tested unanchored against property names; the associated rule is applied to the value of every matching property.

Implementation

const PatternPropertiesRule(this.patterns);