brick_core 1.2.1 brick_core: ^1.2.1 copied to clipboard
Interfaces and shared helpers for implementing models, adapters, providers, and repositories in Brick, an intuitive way to work with persistent data in Dart.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add brick_core
With Flutter:
$ flutter pub add brick_core
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
brick_core: ^1.2.1
Alternatively, 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:brick_core/core.dart';
import 'package:brick_core/field_rename.dart';
import 'package:brick_core/field_serializable.dart';
import 'package:brick_core/query.dart';