NameException.validation constructor

const NameException.validation({
  1. required Object source,
  2. required String nameType,
  3. String message,
})

Creates an error containing the invalid nameType and a message that briefly describes the problem if provided.

Implementation

const factory NameException.validation({
  required Object source,
  required String nameType,
  String message,
}) = ValidationException;