StateFactory<T> typedef
StateFactory<T> =
T Function()
IMPLEMENTATION DETAILS
This is a meta-redux store. The store itself can be though of a warehouse of states.
The state itself contains 1 field. The warehouse.
It is a 3D Map.
State Type
-> Instance ID (default "")
-> DATA
The reason for this mapping is for the features.
- Features are allowed to add any State types they want
- Features might want multiple instances
To enable this, we also need to bring in the concept of State Factories. State factories will tell our Redux implementation how to build an Object if we don't have one.
Implementation
typedef StateFactory<T> = T Function();