reloadTexture method

void reloadTexture(
  1. String path
)

Forgets path's texture so it is read again (it changed on disk).

Implementation

void reloadTexture(String path) {
  if (_textures.remove(path) == null) return;
  _materials.removeWhere((_, m) => m.texture == path);
  _revision++;
}