attributes property

  1. @override
Map<String, Object?> get attributes
override

The settings of the constraint by name, such as {'max': 20, 'min': 0}: they fill the {max} placeholders of messages and, sorted by name, become the arguments {1}, {2}, ... of field errors. Empty by default; override it when a custom constraint has settings.

Implementation

@override
Map<String, Object?> get attributes => {'value': value};