platform/packages/container/angel_container_generator
2024-07-07 23:02:49 +08:00
..
example Upgraded lints to 3.0.0 2023-12-24 09:52:57 +08:00
lib Updated Generated Container 2023-03-11 12:44:22 +08:00
test Upgraded lints to 3.0.0 2023-12-24 09:52:57 +08:00
.gitignore Add 'packages/container/' from commit 'a7eb96a391cced0f9b2d6a9fbaffc3483c2558eb' 2020-02-15 18:22:26 -05:00
analysis_options.yaml Updated auth, model, container and its generator 2021-09-26 14:53:42 +08:00
CHANGELOG.md Updated to support SDK 3.3.0 2024-06-23 12:09:26 +08:00
LICENSE Updated auth, model, container and its generator 2021-09-26 14:53:42 +08:00
melos_angel3_container_generator.iml Added melos 2022-03-19 09:37:28 +08:00
pubspec.yaml Updated to support SDK 3.3.0 2024-06-23 12:09:26 +08:00
README.md Replaced Gitter with Discord chat 2024-07-07 23:02:49 +08:00

Angel3 Container Generator

Pub Version (including pre-releases) Null Safety Discord License

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.

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

    targets:
    $default:
        builders:
        reflectable:
            generate_for:
            - bin/**_controller.dart
            options:
            formatted: true
    

Known limitation

  • analyser 6.x is not supported due to reflectable
  • Reflection on functions/closures is not supported
  • Reflection on private declarations is not supported
  • Reflection on generic type is not supported