ruleMaxStringLength method

  1. @override
String ruleMaxStringLength(
  1. num max
)
override

The rule max string error message

In en, this message translates to: '{max, plural, =1{The text length can't be greater than {max} character} other{The text length can't be greater than {max} characters}}'

Implementation

@override
String ruleMaxStringLength(num max) {
  String _temp0 = intl.Intl.pluralLogic(
    max,
    locale: localeName,
    other: 'La lunghezza del testo non può essere maggiore di $max caratteri',
    one: 'La lunghezza del testo non può essere maggiore di $max carattere',
  );
  return '$_temp0';
}