RegexModel.lettersAndDigits constructor

RegexModel.lettersAndDigits({
  1. List<RegexChar> allowList = const [],
  2. String allow = '',
  3. String? title,
})

Only letters and digits, plus allowList groups and allow characters: RegexModel.lettersAndDigits(allowList: [RegexChar.underscore]).

Implementation

factory RegexModel.lettersAndDigits({
  List<RegexChar> allowList = const [],
  String allow = '',
  String? title,
}) => RegexModel.allowOnly(
  [RegexChar.letters, RegexChar.digits, ...allowList],
  allow: allow,
  title: title,
);