booleanValidationMessage method
Generates a validation error message for a field that should be boolean.
This message indicates that the fieldName
must be boolean (true, false, 1, 0, '1', '0').
Implementation
String booleanValidationMessage(String fieldName) {
return Intl.message(
'$fieldName must be boolean (true, false, 1, 0, \'1\', \'0\').',
name: 'booleanValidationMessage',
desc: 'Validation message for a field that should be boolean',
args: [fieldName],
locale: localeName,
);
}