macro_prototype icon indicating copy to clipboard operation
macro_prototype copied to clipboard

A very basic prototype of macros using build_runner

Results 25 macro_prototype issues
Sort by recently updated
recently updated
newest added

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.

bug

When running a macro you may want to apply a macro from a later phase to an existing declaration.

enhancement

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...

bug

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...

enhancement

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...