clear method

void clear()

Clears all assets and revoke all ObjectURL.

Implementation

void clear() {
  for (var id in List.from(_assets.keys)) {
    remove(id);
  }
  _assets.clear();
}