entity_repository 0.1.4 entity_repository: ^0.1.4 copied to clipboard
A package to annotate abstract classes with entityModel and it generates the references and lookups. It uses hive under the hood
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add entity_repository
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
entity_repository: ^0.1.4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:entity_repository/entity_repository.dart';