model_code_generator 1.0.0
model_code_generator: ^1.0.0 copied to clipboard
Model Code Generator is a simple command for make a model in flutter. it's very easy to use.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate model_code_generatorUse it
The package has the following executables:
$ model_code_generator
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add model_code_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
model_code_generator: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:model_code_generator/main.dart';
import 'package:model_code_generator/model/profil.dart';
import 'package:model_code_generator/model/user.dart';