disposeElement method

void disposeElement()

Called before the widget is updated or when this Node is removed from the tree.

Implementation

void disposeElement() {
  for (final eventSubscription in _eventSubscriptions) {
    eventSubscription.cancel();
  }

  _eventSubscriptions.clear();
}