RegexModel.lettersOnly constructor

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

Only letters (any language), plus allowList groups and allow characters: RegexModel.lettersOnly(allowList: [RegexChar.whitespace]).

Implementation

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