unloadEventHandlers method

  1. @override
void unloadEventHandlers()
override

Unloads this component event handlers. Call super to check whether this component has been attached. If it hasn't, it will throw ComponentNotRenderedException.

Because this is a StringComponent, this method is not called as this component never gets rendered independently. The parent needs to call this typically during preUnrender.

Implementation

@override
void unloadEventHandlers() {
  super.unloadEventHandlers();
  _onMouseMoveSubs?.cancel();
  _onMouseClickSubs?.cancel();
  _onCaptionClickSubs?.cancel();
}