-
Notifications
You must be signed in to change notification settings - Fork 110
Return type of generate method in Generator could be FutureOr #250
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
Comments
Sounds reasonable to me, the only supported file apis ( |
I generally discourage using The place to use (I don't know the source_gen package well enough to see which case this is, so it might be perfectly fine usage here). |
This is a case where the user is supplying us with the method returning |
In this case, the return value of |
Super, keep it up :) |
Return type of
generate
method inGenerator
could beFutureOr
. In my experience, it is usually synchronous.https://github.com/dart-lang/source_gen/blob/master/lib/src/generator.dart#L23
The text was updated successfully, but these errors were encountered: