macro_prototype
macro_prototype copied to clipboard
A very basic prototype of macros using build_runner
Currently, both Riverpod and flutter_hooks sometimes relies on users having to define a list of dependencies used by a function An example would be: ```dart final provider = Provider((ref) {...
Mostly a placeholder issue for now, we need to spec this feature out. The general idea is to allow macros inside of constructor bodies. These macros would be able to...
So far, a type only exposes limited informations It would be useful to add extra utilities, such as: - converting a `runtimeType` into a type (similar to `TypeChecker` from the...
It would be good to have `isFactory`, `isConst`, and then in the case of redirecting factory constructors it would be good if we could get the name. The last bit...
For instance today two FunctionDefintionMacros that each call `wrapBody` will result in two different versions of the function being generated.
When running a macro you may want to apply a macro from a later phase to an existing declaration.
Because the build runs on the VM, you can't import flutter, so you can't check if things are subtypes of known flutter types. A possibly solution could be a VM...
I think there should be a way to add mixins / implements / extends clauses to classes. Freezed requires a mixin for creating switch like functions for union classes. But...
I am not sure this is a good idea, but filing it to have a central area for discussion. The general idea is to have a mechanism available whereby mixing...
Consider a widget that receives a Listenable object, and wants to subscribe to it and rebuild each time it triggers. Currently this requires a lot of boilerplate: ```dart class Foo...