locorda_mapping_bootstrap_generator 0.5.2
locorda_mapping_bootstrap_generator: ^0.5.2 copied to clipboard
Build-time generator that embeds Locorda CRDT merge contracts (mapping documents) into your app bundle at compile time for offline-first cold-start.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add locorda_mapping_bootstrap_generatorWith Flutter:
$ flutter pub add locorda_mapping_bootstrap_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
locorda_mapping_bootstrap_generator: ^0.5.2Alternatively, 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:locorda_mapping_bootstrap_generator/locorda_mapping_bootstrap_generator.dart';