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_liteUse 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_liteWith Flutter:
$ flutter pub add generators_liteThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
generators_lite: ^1.0.4Alternatively, 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';