clear method

void clear()

Drops per-session state. Loaded fonts stay registered with the engine.

Implementation

void clear() {
  for (final image in images.values) {
    image.image.dispose();
  }
  images.clear();
  chunks.clear();
  styles.clear();
  _flutterStyles.clear();
  _familyKeys.clear();
  _offeredFiles.clear();
  _clearParagraphs();
}