platform/packages/container/container_generator
2024-09-24 21:04:57 -07:00
..
example update(angel3): refactoring and adding api inline help 2024-09-24 21:04:57 -07:00
lib update(angel3): refactoring and adding api inline help 2024-09-24 21:04:57 -07:00
test update(angel3): refactoring and adding api inline help 2024-09-24 21:04:57 -07:00
.gitignore add(angel3): adding re-branded angel3 container package 2024-09-22 18:43:11 -07:00
analysis_options.yaml add(angel3): adding re-branded angel3 container package 2024-09-22 18:43:11 -07:00
CHANGELOG.md add(angel3): adding re-branded angel3 container package 2024-09-22 18:43:11 -07:00
LICENSE add(angel3): adding re-branded angel3 container package 2024-09-22 18:43:11 -07:00
pubspec.yaml update(angel3): updating pubspec files 2024-09-23 13:56:10 -07:00
README.md update(angel3): re-branding angel3 2024-09-23 13:35:32 -07:00

Protevus Container Generator

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

An alternative container for Protevus 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