onValidate method

  1. @override
String? onValidate(
  1. int? value,
  2. String translator(
    1. String, {
    2. List<String>? params,
    })
)
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;
}