createStore function
This is the entry point of the ajwah store. You may pass necessay states and effects through this method. Also you can dynamically add or remove state and effect using addState(BaseState stateInstance) ,removeStateByStateName(String stateName), addEffects(BaseEffect effectInstance), addEffect(EffectCallback callback, {@required String key}), removeEffectsByKey(String key)
Implementation
Store createStore(
{@required List<BaseState> states, List<BaseEffect> effects = const []}) {
_store = Store(states);
effects.forEach((effect) {
_store.addEffects(effect);
});
return _store;
}