message method

  1. @override
String message()
override

Get the validation error message.

Return a translation key (e.g., 'validation.required') or a raw string. The :attribute placeholder will be replaced with the field name.

Implementation

@override
String message() => 'validation.unique';