unregisterEffect method
- {@required String effectKey}
This method is usefull to remove effects passing effectKey on demand.
Implementation
void unregisterEffect({@required String effectKey}) {
if (_effectSubscriptions.containsKey(effectKey)) {
_effectSubscriptions[effectKey].cancel();
_effectSubscriptions.remove(effectKey);
dispatch(Action(type: 'unregisterEffect($effectKey)'));
}
}