detach method

void detach()

Detaches the controller to prevent memory leaks.

Implementation

void detach() {
  _getDataCallback = null;
  _getTableDataCallback = null;
  _downloadCallback = null;
  _textControllers.clear();
}