close method

void close()

Releases the handle; rasters referring to this source can no longer read.

Implementation

void close() {
  if (!_closed) {
    _closed = true;
    _cache = Uint8List(0);
    _file.closeSync();
  }
}