dispose method Null safety

void dispose()
inherited

Removing an object from memory. Must be called manually.

Implementation

void dispose() {
  if (_isDisposed) return;
  _destructor(_impl);
  _isDisposed = true;
}