inspectable_property 0.0.3
inspectable_property: ^0.0.3 copied to clipboard
Add reflection-like runtime inspection to your Dart classes. Mix in Inspectable and use the Inspector widget to view and edit typed properties — no code generation required.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add inspectable_propertyThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
inspectable_property: ^0.0.3Alternatively, 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:inspectable_property/editor_base.dart';
import 'package:inspectable_property/editors/editor_bool.dart';
import 'package:inspectable_property/editors/editor_double.dart';
import 'package:inspectable_property/editors/editor_enum.dart';
import 'package:inspectable_property/editors/editor_int.dart';
import 'package:inspectable_property/editors/editor_string.dart';
import 'package:inspectable_property/inspectable.dart';
import 'package:inspectable_property/inspector.dart';