core/normalization library

Classes

NormalizedState<T>
Normalized state structure for managing collections
RxNormalizedState<T>
Reactive normalized state

Functions

denormalize<T>(Map<String, T> normalized) List<T>
Denormalize a map of entities into a list
normalize<T>(List<T> entities, IdExtractor<T> extractId) Map<String, T>
Normalize a list of entities into a map

Typedefs

IdExtractor<T> = String Function(T entity)
Helper to extract ID from entity