generators_lite 1.0.4 generators_lite: ^1.0.4 copied to clipboard
Use the power of automatic code generation for Dart.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate generators_lite
Use it
The package has the following executables:
$ generate
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add generators_lite
With Flutter:
$ flutter pub add generators_lite
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
generators_lite: ^1.0.4
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:generators_lite/assets_generator.dart';
import 'package:generators_lite/i18n_generator.dart';
import 'package:generators_lite/icons_generator.dart';
import 'package:generators_lite/models_generator.dart';