RegexModel constructor
RegexModel({})
Creates a rule from a regExp or a test function.
Implementation
RegexModel({
required this.title,
this.regExp,
this.test,
this.iconTrue,
this.iconFalse,
this.colorTrue,
this.colorFalse,
this.textColorTrue,
this.textColorFalse,
this.textStyle,
}) : assert(regExp != null || test != null, 'Pass a regExp or a test');