didDetachRenderer method

  1. @override
void didDetachRenderer()
override

Implementation

@override
void didDetachRenderer() {
  super.didDetachRenderer();

  removeEventListener(EVENT_TOUCH_START, _handleEditable);
  removeEventListener(EVENT_TOUCH_MOVE, _handleEditable);
  removeEventListener(EVENT_TOUCH_END, _handleEditable);
  removeEventListener(EVENT_CLICK, _handleEditable);
  removeEventListener(EVENT_DOUBLE_CLICK, _handleEditable);
  removeEventListener(EVENT_LONG_PRESS, _handleEditable);

  _cursorBlinkOpacityController!.removeListener(_onCursorColorTick);
  _cursorBlinkOpacityController = null;
  renderEditable = null;
}