dispose method

void dispose()

Releases the map in any state, and finishes in the background.

Use it from destructors and finalizers. Otherwise, use MapHandle.release().

See mln_map_dispose in the C API reference.

Implementation

void dispose() => _state.close(
  (handle) => raw.mln_map_dispose(handle.raw, nativeDiagnostic),
);