dispose method

void dispose ()

Implementation

void dispose() {
  if (!_locked) {
    throw FlutterError("Can't dispose resources before Voyager is locked");
  }
  _onDispose.forEach((callback) => callback());
  _onDispose.clear();
  _output.clear();
  _config.clear();
}