dispose method

void dispose()

Release the resources used by this object. The object is no longer usable after this method is called.

Implementation

void dispose() {
  assert(!_disposed);
  assert(() {
    _disposed = true;
    return true;
  }());
  _dispose();
}