identifiable 0.3.0
identifiable: ^0.3.0 copied to clipboard
Identifiable mixin and id-based collection helpers for Dart.
0.3.0 #
- BREAKING: rename the
MapextensionIdentifiableMap→IdentifiableMapExtension, freeing the name for the new typedef. - Add typedefs
IdentifiableMap<T, I>(= Map<I, T>) andIdentityMap<T>(= Map<String, T>). - Add
IdentifiableList.withoutId(List-returning) andIdentifiableList.appendOrReplaceOnOverlap.
0.2.2 #
- Add
IdentifiableIterable.includesId— membership by id (the id-typed companion toincludes).
0.2.1 #
- Expand test coverage (typed/record ids,
updateById,indexWhereById) and update the README for the generic API. No API changes.
0.2.0 #
- BREAKING:
Identifiableis now generic over the id type —Identifiable<I>(records, ints, etc.). MixIdentity(= Identifiable<String>) orIdentifiable<String>instead of bareIdentifiable. - Add
IdentifiableIterable.updateByIdandIdentifiableList.indexWhereById.
0.1.1 #
- Add
hasSameId(id-only check);isSameAsnow also requires a matchingruntimeType.
0.1.0 #
- Initial release.
Identifiablemixin (id,isSameAs).IdentifiableIterable:includes,overlaps,withoutId,byId,toMapById.IdentifiableMap:upsert,upsertAll,removeById,updateById.