RegexModel.digitsOnly constructor

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

Only digits 0–9, plus allowList groups and allow characters.

Implementation

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