brick_core
Interfaces and shared helpers for implementing models, adapters, providers, and repositories in Brick, an intuitive way to work with persistent data in Dart.
2.1.0
8.5K downloads/mo
#3135 most downloaded on pub.dev
GetDutchie/brick
What this package is like to depend on
Last release 9 months ago
01 Nov 2025
Release timing varies
gaps range from 9 days to 1.3 years
Nearly every release is documented
notes for 18 of 19 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
21 releases · first in 2020
1 release in the last 12 months
see the full history below
Release timeline
21 releases · Jan 2020 to Nov 2025Releases
latest 21-
2.1.001 Nov 2025Release notes
Open source →- Add support for
#isInandCompare.inIterabletoWherequeries (#602) - Add additional API documentation discouraging
SingleProviderRepositoryusage in practical implementations.
- Add support for
-
2.0.018 Feb 2025Release notes
Open source →- BREAKING CHANGE
Query(providerArgs:)is no longer accepted. See 1.3.0 for migration steps. - BREAKING CHANGE
Query#copyWithno longer acceptsproviderArgs. See 1.3.0 for migration steps. - BREAKING CHANGE
FieldSerializable#nullableis removed. See 1.4.0 for migration steps. - Dart minimum SDK is updated to
3.4.0
- BREAKING CHANGE
-
1.4.002 Jan 2025Release notes
Open source →- DEPRECATION remove
FieldSerializable#nullable. Builders should evaluate the nullable suffix of the field instead
- DEPRECATION remove
-
1.3.127 Dec 2024Release notes
Open source →constantizeWhere.exactlyandOrderBy.{desc|asc}- Add deprecation annotation to
Query#copyWith#providerArgs
-
1.3.024 Dec 2024Release notes
Open source →- DEPRECATION
Query(providerArgs: {'limit':})is nowQuery(limit:)#510 - DEPRECATION
Query(providerArgs: {'offset':})is nowQuery(offset:)#510 - DEPRECATION
Query(providerArgs: {'orderBy':})is nowQuery(orderBy:).orderByis now defined by a class that permits multiple commands. For example,'orderBy': 'name ASC'becomes[OrderBy('name', ascending: true)]. #510 - DEPRECATION
providerArgswill be removed in the next major release #510 OrderBywill support association ordering and multiple valuesQueryis constructed withconstQuery#offsetno longer requires companionlimitparameter
- DEPRECATION
-
1.2.127 Aug 2024 -
1.2.027 May 2024 -
1.1.223 May 2023 -
1.1.127 Jan 2022 -
1.1.020 Jan 2022 -
1.0.015 Mar 2021Release notes
Open source →- Null safety
- BREAKING CHANGE: because
requiredis now a first-class Dart keyword,requiredinWherePhrase,WhereCondition,And,Or, andWherehas been renamed toisRequired. - Add optional method
Provider#exists. Whether a model instance is present.nullis returned when existence is unknown. The model instance is not hydrated in the function output; aboolvariant (e.g.List<bool>,Map<_Model, bool>) should be returned.
-
1.0.0+105 Apr 2021 -
1.0.0-nullsafety.104 Mar 2021 pre-releaseNothing published for this version
-
1.0.0-nullsafety.004 Mar 2021 pre-releaseNothing published for this version
-
0.0.613 Jun 2020 -
0.0.524 Jan 2020Release notes
Open source →- Rename
Query#paramstoQuery#providerArgs, reflecting the much narrower purpose of the member
- Rename
-
0.0.421 Jan 2020Release notes
Open source →FieldSerializable#defaultValuechanges fromdynamictoString. As this is injected directly into the adapter, it does not need to be dynamic and should better reflect its purpose.
-
0.0.317 Jan 2020Release notes
Open source →- Add
AndandOrWheresubclasses - Removes Type argument from
Where - Adds semantic methods to
Wheresuch asisExactlyand - BREAKING Revise
Wheresyntax. This removes the second positional argument in favor of using it in a semantic method. - Adds
Where.exactfactory to preserve previous, short syntax - Move query-related files to
src/queryand make them accessible from a barrel file in the lib root
- Add
-
0.0.3+117 Jan 2020Release notes
Open source →- Moves generator placeholders to
FieldSerializableformOfflineFirst - Removes query validation that ensures all Where conditions have a non-null value
- Moves generator placeholders to
-
0.0.213 Jan 2020Release notes
Open source →- Fix linter hints
- Adds
initializemethod toModelRepository. This is enforces a predictable, overridable method for sub classes
-
0.0.110 Jan 2020Nothing published for this version