destroy method

void destroy()

Unistalls all listeners.

Implementation

void destroy() {
  _subs.forEach((sub) => sub.cancel());
  _subs.clear();
}