Reflection for Dart without dart:mirrors, generated from the capabilities you ask for
open sourceBSD-3-Clausefree
reflectable gives Dart programs much of what dart:mirrors offers without depending on it: you declare up front, as capabilities, which reflective operations you need on which classes, and its builder package reflectable_builder generates the code that provides exactly that, so programs stay smaller. Using it at run time looks very much like dart:mirrors, and anything outside the declared capabilities throws NoSuchCapabilityError. Code generation runs through the build package and build_runner. Google makes it.
Problems it solves
- use reflection in Dart where dart:mirrors isn't available
- look up and invoke class members by name at run time in a Dart app
- keep reflection code small by generating only what my Dart program needs
Features
- reflection modelled on dart:mirrors without importing it
- capabilities that limit which reflective operations are supported, and on which objects
- code generation through reflectable_builder and build_runner
- NoSuchCapabilityError for reflection outside the declared capabilities
