class_switch 0.0.1-dev.3 copy "class_switch: ^0.0.1-dev.3" to clipboard
class_switch: ^0.0.1-dev.3 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:

With Dart:

 $ dart pub add class_switch

With Flutter:

 $ flutter pub add class_switch

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  class_switch: ^0.0.1-dev.3

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:class_switch/class_switch.dart';
1
likes
150
points
44
downloads

Publisher

verified publishernigelgott.com

Weekly Downloads

`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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on class_switch