message method

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

The error message returned when validation fails.

Implementation

@override
String message(dynamic value, [List<String>? options]) =>
    'This field must be one of the allowed values: ${options?.join(', ')}.';