reset method

void reset()

Reset and disposes any loaded content.

Implementation

void reset() {
  _readFuture = null;
  if (resource != null) {
    _content = null;
  }
  _loaded = false;
  _loadError = false;
}