void dispose()

Source

void dispose() {
  for (var resource in _resourceMap.values.toList(growable: false)) {
    if (resource.kind == "BitmapData") {
      this.removeBitmapData(resource.name, dispose: true);
    } else if (resource.kind == "TextureAtlas") {
      this.removeTextureAtlas(resource.name, dispose: true);
    } else {
      _removeResource(resource.kind, resource.name);
    }
  }
}