platform/packages/container/angel_container_generator
thomashii@dukefirehawk.com 168c51074b Published angel2_container
2023-04-15 09:07:24 +08:00
..
example Updated Generated Container 2023-03-11 12:44:22 +08:00
lib Updated Generated Container 2023-03-11 12:44:22 +08:00
test Updated Generated Container 2023-03-11 12:44:22 +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 Fixed angel3_orm_generator 2022-12-17 17:59:00 +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 test cases 2022-12-28 06:59:40 +08:00
README.md Updated Generated Container 2023-03-11 12:44:22 +08:00

Angel3 Container Generator

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

An alternative container for Angel3 that uses reflectable instead of dart:mirrors for reflection.

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

  • Reflection on functions/closures
  • Reflection on private declarations
  • Reflection on generic type