typeName property

String get typeName

Returns the type name used in validation messages.

Implementation

String get typeName => switch (this) {
  ModelClassDefinition() => 'model',
  ExceptionClassDefinition() => 'exception',
};