NameException.validation constructor
const
NameException.validation({})
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;