RegexValidator constructor

RegexValidator({
  1. required RegExp regex,
  2. MatchType matchType = MatchType.Entire,
  3. bool trim = false,
  4. bool allowEmpty = false,
  5. String message = "格式不符",
})

Implementation

RegexValidator({required this.regex, this.matchType = MatchType.Entire, this.trim = false, this.allowEmpty = false, this.message = "格式不符"});