class_switch_generator: ^0.0.1-dev.2 copied to clipboard
`class_switch_generator` lets you switch over all the sub-classes of a class instance or all possible combinations of sub-classes for multiple base class instances.
Use this package as a library
Depend on it
Run this command:
$ dart pub add class_switch_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit
dart pub get):
dependencies: class_switch_generator: ^0.0.1-dev.2
Alternatively, your editor might support
dart pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use: