Integrate Dart Macros for Improved Developer Experience #848
si-huynh-coderpush
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion proposes exploring the integration of Dart macros into the Floor library. Dart macros offer the potential to significantly enhance the developer experience by:
This proposal aims to initiate a discussion on the feasibility and potential benefits of incorporating Dart macros into Floor. Specific areas of exploration could include:
I believe that leveraging Dart macros can significantly improve Floor's usability and efficiency, making it an even more attractive option for Flutter developers. I welcome any feedback and suggestions on this proposal.
Possible Example:
Instead of this:
We could have something like this:
Where @DatabaseEntity would be a macro responsible for generating all the necessary boilerplate code for Floor.
Resources:
Dart Macros Documentation https://dart.dev/language/macros#how-macros-work
I'm eager to hear your thoughts on this! 😄
Beta Was this translation helpful? Give feedback.
All reactions