RegexpValidator constructor

RegexpValidator(
  1. RegExp regExp, {
  2. String? fieldName,
  3. String? errorMessage,
})

Implementation

RegexpValidator(
  this.regExp, {
  String? fieldName,
  String? errorMessage,
}) : super(
        fieldName: fieldName,
        message:
            errorMessage ?? 'doesn\'t match to ${regExp.pattern} pattern',
      );