platform/packages/container/angel_container_generator
2023-04-15 11:19:52 +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 Updated angel container generator 2023-04-15 11:19:52 +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 angel container generator 2023-04-15 11:19:52 +08:00
README.md Updated angel container generator 2023-04-15 11:19:52 +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 much 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

  • Reflection on functions/closures is not supported
  • Reflection on private declarations is not supported
  • Reflection on generic type is not supported