removeBlocWithKey method

void removeBlocWithKey (
  1. String key
)

Removes the Bloc with Bloc.key key.

If a Bloc with Bloc.key key has not been registered with this Dispatcher nothing will happen. This method will throw a StateError if this is closed. A Dispatcher is closed after its dispose method is called. To see if a Dispatcher is closed use getter closed.

Implementation

void removeBlocWithKey(String key);