ruleSizeStringLength method

  1. @override
String ruleSizeStringLength(
  1. num size
)
override

The rule size string length error message

In en, this message translates to: '{size, plural, =1{The text length must be {size} character} other{The text length must be {size} characters}}'

Implementation

@override
String ruleSizeStringLength(num size) {
  String _temp0 = intl.Intl.pluralLogic(
    size,
    locale: localeName,
    other: 'La longueur du texte doit être de $size caractères',
    one: 'La longueur du texte doit être de $size caractère',
  );
  return '$_temp0';
}