Replies: 2 comments 3 replies
-
I'm all for it :D I have been following the macros development for a year or so now and excited its almost here. Also I've already done some tests with it, exploring and possible chopper route. Currently there is still something I haven't figured out. That is obtaining meta data in macros. For example when annotating a parameter in a method with But issues can be solved 😉 How should we go further with this. Include it in a separated package or in the chopper package itself? |
Beta Was this translation helpful? Give feedback.
-
I'm also always thinking on how to improve it and implement it the best it could be. Currently chopper is based on Retrofit and build with what build_runner is capable of. But macros and augmentations might offer new and other ways of define a chopper client. For example: @Get(uri: 'awesome/{id}',returnType: MyClass)
@ChopperClient('http://example.com')
class MyClient {
}
void main() async {
final client = MyClient();
final myClass = await client.getMyClass(id: '1');
} I think we should not just port chopper to macros but also explore the best way this could work with macros. |
Beta Was this translation helpful? Give feedback.
-
With the advent of Dart Macros we should probably start looking into adopting them in Chopper v9.
What are your thoughts, guys?
CC / @JEuler @Guldem
Beta Was this translation helpful? Give feedback.
All reactions