2021-09-26 06:53:42 +00:00
# Angel3 Container Generator
![Pub Version (including pre-releases) ](https://img.shields.io/pub/v/angel3_container_generator?include_prereleases )
[![Null Safety ](https://img.shields.io/badge/null-safety-brightgreen )](https://dart.dev/null-safety)
2024-07-07 15:02:49 +00:00
[![Discord ](https://img.shields.io/discord/1060322353214660698 )](https://discord.gg/3X6bxTUdCM)
2023-12-25 03:45:10 +00:00
[![License ](https://img.shields.io/github/license/dart-backend/angel )](https://github.com/dart-backend/angel/tree/master/packages/container/angel3_container_generator/LICENSE)
2021-09-26 06:53:42 +00:00
2023-12-24 01:52:57 +00:00
An alternative container for Angel3 that uses `reflectable` package instead of `dart:mirrors` for reflection. However, `reflectable` has more limited relfection capabilities when compared to `dart:mirrors` .
2023-03-11 04:44:22 +00:00
## Usage
* Annotable the class with `@contained` .
* Run `dart run build_runner build <Your class directory>`
* Alternatively create a `build.xml` file with the following content
```yaml
targets:
$default:
builders:
reflectable:
generate_for:
- bin/**_controller.dart
options:
formatted: true
```
## Known limitation
2023-12-24 01:52:57 +00:00
* `analyser` 6.x is not supported due to `reflectable`
2023-04-15 03:19:52 +00:00
* Reflection on functions/closures is not supported
* Reflection on private declarations is not supported
* Reflection on generic type is not supported