dispose method

void dispose ()

Implementation

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