message method

  1. @override
String message(
  1. dynamic value, [
  2. List<String>? options
])
override

The message that will be displayed if the validation fails. This provides feedback to the user indicating that the field is required.

Implementation

@override
String message(dynamic value, [List<String>? options]) =>
    'This field is required.';