ValidatorAnnotation constructor

const ValidatorAnnotation({
  1. required String name,
  2. String? fieldName,
  3. String? errorMessage,
})

Implementation

const ValidatorAnnotation({
  required this.name,
  this.fieldName,
  String? errorMessage,
}) : _errorMessage = errorMessage;