dispatchable_generator 0.0.1-dev.3 copy "dispatchable_generator: ^0.0.1-dev.3" to clipboard
dispatchable_generator: ^0.0.1-dev.3 copied to clipboard

discontinuedreplaced by: class_switch_generator
SDKDart

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 dispatchable_generator

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

dependencies:
  dispatchable_generator: ^0.0.1-dev.3

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:dispatchable_generator/dispatchable_generator.dart';
0
likes
130
points
15
downloads

Publisher

verified publishernigelgott.com

Weekly Downloads

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

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, build, dispatchable, meta, optional, source_gen

More

Packages that depend on dispatchable_generator