RegexLabels constructor
const
RegexLabels({
- String minLength(
- int length
- String maxLength(
- int length
- String lengthBetween() = _lengthBetween,
- String exactLength(
- int length
- String uppercase(
- int length
- String lowercase(
- int length
- String digit(
- int length
- String special(
- int length
- String noRepeating(
- int length
- String startsWith(
- String text
- String notStartsWith(
- String text
- String endsWith(
- String text
- String contains(
- String text
- String only(
- String text
- String none(
- String text
- String join() = _join,
- Map<
RegexChar, String> chars = const {}, - String space = 'spaces',
- String noSpaces = 'No spaces',
- String email = 'Valid e-mail address',
- String phone = 'Valid phone number',
- String url = 'Valid web address',
- String iban = 'Valid IBAN',
- String sameAs = 'Passwords must match',
- String required = 'Required',
- String notContains = 'Does not contain your name',
- String met = 'met',
- String unmet = 'not met',
- List<
String> strength = const ['Very weak', 'Weak', 'Fair', 'Good', 'Strong'], - String show = 'Show password',
- String hide = 'Hide password',
- String passwordField = 'Password',
- String emailField = 'E-mail',
- String userNameField = 'User name',
Creates labels; anything left out stays English.
Implementation
const RegexLabels({
this.minLength = _minLength,
this.maxLength = _maxLength,
this.lengthBetween = _lengthBetween,
this.exactLength = _exactLength,
this.uppercase = _uppercase,
this.lowercase = _lowercase,
this.digit = _digit,
this.special = _special,
this.noRepeating = _noRepeating,
this.startsWith = _startsWith,
this.notStartsWith = _notStartsWith,
this.endsWith = _endsWith,
this.contains = _contains,
this.only = _only,
this.none = _none,
this.join = _join,
this.chars = const {},
this.space = 'spaces',
this.noSpaces = 'No spaces',
this.email = 'Valid e-mail address',
this.phone = 'Valid phone number',
this.url = 'Valid web address',
this.iban = 'Valid IBAN',
this.sameAs = 'Passwords must match',
this.required = 'Required',
this.notContains = 'Does not contain your name',
this.met = 'met',
this.unmet = 'not met',
this.strength = const ['Very weak', 'Weak', 'Fair', 'Good', 'Strong'],
this.show = 'Show password',
this.hide = 'Hide password',
this.passwordField = 'Password',
this.emailField = 'E-mail',
this.userNameField = 'User name',
});