Setup
Installation
Add these dev dependencies :
dev_dependencies:
build_runner:
modddels:
Then, add ONE of these dependencies :
dependencies:
# If you use fpdart for functional programming
modddels_annotation_fpdart:
# If you use dartz for functional programming
modddels_annotation_dartz:
This package uses the functional programming types Option
, Either
and Tuple2
.
If you use fpdart as a functional programming package, install
modddels_annotation_fpdart
.If you use dartz as a functional programming package, install
modddels_annotation_dartz
.
Running the Generator
In your package directory, run the following command :
dart run build_runner build
For flutter projects, you can instead run :
flutter pub run build_runner build
See build_runner for more commands.
Last updated