Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for generic annotations #524

Closed
nikitadol opened this issue Sep 24, 2021 · 4 comments
Closed

Support for generic annotations #524

nikitadol opened this issue Sep 24, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@nikitadol
Copy link

Dart now supports generic annotations
dart-lang/language#1297
https://dart.dev/guides/language/evolution#dart-214

Can we use them instead?

const With.fromString(this.stringType) : type = null;

@nikitadol nikitadol added enhancement New feature or request needs triage labels Sep 24, 2021
@nikitadol
Copy link
Author

If it works out of the box, then it might be worth removing the extra constructor

@rrousselGit
Copy link
Owner

Yes, this is planned

@rockyoung
Copy link

how do we get the generic type from annotation which now is provided as a ConstantReader of pkg: source_gen

@rrousselGit
Copy link
Owner

0.15.0 added support for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants