.. | ||
example | ||
lib | ||
test | ||
.gitignore | ||
analysis_options.yaml | ||
CHANGELOG.md | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
Protevus Container Generator
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 contenttargets: $default: builders: reflectable: generate_for: - bin/**_controller.dart options: formatted: true
Known limitation
analyser
6.x is not supported due toreflectable
- Reflection on functions/closures is not supported
- Reflection on private declarations is not supported
- Reflection on generic type is not supported