removeEffectsByKey method

dynamic removeEffectsByKey (String effectKey)

This method is usefull to remove effects passing effectKey on demand.

Implementation

removeEffectsByKey(String effectKey) {
  if (_subs.containsKey(effectKey)) {
    _subs[effectKey].cancel();
    _subs.remove(effectKey);
  }
}