angel3_container_generator 8.2.0 copy "angel3_container_generator: ^8.2.0" to clipboard
angel3_container_generator: ^8.2.0 copied to clipboard

Codegen support for using pkg:reflectable with pkg:angel3_container.

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
    
    copied to clipboard

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
1
likes
160
points
74
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

2024.07.08 - 2025.01.20

Codegen support for using pkg:reflectable with pkg:angel3_container.

Homepage
Repository (GitHub)
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

angel3_container, reflectable

More

Packages that depend on angel3_container_generator