class_switch_generator 0.0.1-dev.0 copy "class_switch_generator: ^0.0.1-dev.0" to clipboard
class_switch_generator: ^0.0.1-dev.0 copied to clipboard

outdated

Generates abstract dispatcher classes with handle methods for all sub classes of an annotated class.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ 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.0

Alternatively, your editor might support dart 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_generator/class_switch_generator.dart';
0
likes
0
pub points
0%
popularity

Publisher

verified publishernigelgott.com

Generates abstract dispatcher classes with handle methods for all sub classes of an annotated class.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, build, class_switch, generic_reader, meta, optional, source_gen

More

Packages that depend on class_switch_generator