class_generator 2.0.1 copy "class_generator: ^2.0.1" to clipboard
class_generator: ^2.0.1 copied to clipboard

Builder-based library for dart code generation such as classes, methods, properties and constructors.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add class_generator

With Flutter:

 $ flutter pub add class_generator

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

dependencies:
  class_generator: ^2.0.1

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_generator/class_generator.dart';
3
likes
130
pub points
51%
popularity

Publisher

verified publishernathans.dev

Builder-based library for dart code generation such as classes, methods, properties and constructors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

recase

More

Packages that depend on class_generator