exactLength static method
Implementation
static FormFieldValidator<String> exactLength({
required int length,
required String message,
}) =>
(String? value) {
if (value == null || value.length != length) {
return message;
}
return null;
};