name property
The simple name of the class.
Optional. If not provided, the toClass method will use the declaration or create a generic class instance. The name should match the actual class name as declared in Dart source code.
Example
final classType = ClassType(name: 'UserService');
Implementation
final String? name;