firestore_entity_gen 0.0.2+2-pre
firestore_entity_gen: ^0.0.2+2-pre copied to clipboard
A source_gen-based generator to produce structured Firestore entity mappers for Flutter/Dart.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add firestore_entity_genWith Flutter:
$ flutter pub add firestore_entity_genThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
firestore_entity_gen: ^0.0.2+2-preAlternatively, 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:firestore_entity_gen/firestore_entity_gen.dart';