dispose method Null safety

void dispose()

Disposes this object and release resources.

Implementation

void dispose() {
  _selectionOverlay.dispose();
  renderObject.selectionStartInViewport.removeListener(_updateTextSelectionOverlayVisibilities);
  renderObject.selectionEndInViewport.removeListener(_updateTextSelectionOverlayVisibilities);
  _effectiveToolbarVisibility.dispose();
  _effectiveStartHandleVisibility.dispose();
  _effectiveEndHandleVisibility.dispose();
}