onValidate method
override
onValidate is used to validate the given input by the user.
Implementation
@override
String? onValidate(
int? value,
String Function(String, {List<String>? params}) translator,
) {
if (mandatory) {}
return null;
}