datum_generator 1.1.0
datum_generator: ^1.1.0 copied to clipboard
Code generator for the Datum framework — derives toDatumMap, fromMap, copyWith, and diff for entities via build_runner, wire-compatible with the runtime typed-schema layer.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add datum_generatorWith Flutter:
$ flutter pub add datum_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
datum_generator: ^1.1.0Alternatively, 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:datum_generator/datum_generator.dart';