message method
The error message to be displayed if the validation fails.
Implementation
@override
String message(dynamic value, [List<String>? options]) {
if (options != null && options.isNotEmpty) {
return 'This field must be at least ${options[0]}.';
}
return 'This field must be at least the minimum value.';
}