fileSizeValidationMessage method

String fileSizeValidationMessage(
  1. String fieldName,
  2. int size
)

Implementation

String fileSizeValidationMessage(String fieldName, int size) {
  return Intl.message(
    '$fieldName must be less than $size KB.',
    name: 'fileSizeValidationMessage',
    desc:
        'Validation message for a field that must be less than a specific size',
    args: [fieldName, size],
    locale: localeName,
  );
}