maybeDispose method

void maybeDispose()

Implementation

void maybeDispose() {
  if (disposeOnWidgetDisposal) {
    dispose();
  }
  // Remove reference to widget for garbage collection purposes.
  _widget = null;
}