clearLibraries method

void clearLibraries()

Remove all the libraries and start afresh.

Calling this notifies the listeners, which typically causes them to rebuild their widgets in the next frame (for example, that is how RemoteWidget is implemented). If no libraries are readded after calling clearLibraries, and there are any listeners, they will fail to rebuild any widgets that they were configured to create. For this reason, this call should usually be immediately followed by calls to update.

Implementation

void clearLibraries() {
  _libraries.clear();
  _clearCache();
}