flutterx_reflection 1.0.0-dev
flutterx_reflection: ^1.0.0-dev copied to clipboard
Allows to instantiate classes at runtime without using dart mirror
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutterx_reflectionThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
flutterx_reflection: ^1.0.0-devAlternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutterx_reflection/flutterx_reflection.dart';