package property

String? package
final

The package the class belongs to, if any.

Optional. Used by toClass to resolve the fully qualified class name. This should follow Dart's package URI format (e.g., 'package:example/services').

Example

final classType = ClassType(
  name: 'UserService',
  package: 'package:example/services'
);

Implementation

final String? package;