platform/core/container/container_generator
2024-10-02 18:48:52 -07:00
..
example Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
lib Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
test Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
.gitignore Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
analysis_options.yaml Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
CHANGELOG.md Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
LICENSE Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
pubspec.yaml Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07:00
README.md Update: updating structure adding forked rxdart, event_bus_plus, dart_mq 2024-10-02 18:48:52 -07: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