RegexModel.digitsOnly constructor
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,
);