platform/packages/container/angel_container_generator/README.md
thomashii@dukefirehawk.com 08ba4f0609 Updated Generated Container
2023-03-11 12:44:22 +08:00

1.1 KiB

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