dispose method

void dispose()

Disposes the python module

Implementation

void dispose() {
  _moduleMap.remove(moduleName);
  for (final func in _functions.entries) {
    func.value.dispose();
  }
  _functions.clear();
  dartpyc.Py_DecRef(_moduleRef);
}