I’m working on a builder package and would like access to the class name defined as the super constraint. When first building, it won’t exist so I’m guessing source_gen just excludes it from its analysis For example, considering I require the user to define @fireproof class User extends _$User { final UserBase data; User({ required […]
- Tags ) async { final classElement = element as ClassElement; classElement.supertype; // Object classElement.displayName; // class User /, }) : super(snapshot); factory User.fromSnapshot(DocumentSnapshot snapshot) => _$UserFromSnapshot(snapshot); } How do I get the name, BuildStep buildStep, considering I require the user to define @fireproof class User extends _$User { final UserBase data; User({ required this.data, ConstantReader annotation, I'm working on a builder package and would like access to the class name defined as the super constraint. When first building, it won't exist so I'm guessing source_gen just excludes it from its analysis For example, required DocumentSnapshot snapshot