snippet_gen 1.0.1 copy "snippet_gen: ^1.0.1" to clipboard
snippet_gen: ^1.0.1 copied to clipboard

A Dart CLI code generator for provider, bloc architecture, and JSON-to-Dart models with safe parsing and nested class support.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate snippet_gen

Use it

The package has the following executables:

$ snipgen

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add snippet_gen

With Flutter:

 $ flutter pub add snippet_gen

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

dependencies:
  snippet_gen: ^1.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:snippet_gen/snippet_gen.dart';
1
likes
145
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart CLI code generator for provider, bloc architecture, and JSON-to-Dart models with safe parsing and nested class support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

intl, path

More

Packages that depend on snippet_gen