platform/packages/container/angel_container_generator
2024-05-22 00:26:09 +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 repository links 2023-12-25 11:45:10 +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 lints 2024-05-22 00:26:09 +08:00
README.md Updated repository links 2023-12-25 11:45:10 +08:00

Angel3 Container Generator

Pub Version (including pre-releases) Null Safety Gitter 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