createMap method
- MapOptions options
Creates a map on runtime.
Asynchronous calls on the map before the completion runs wait for it, and
complete with Status.invalidState when creation fails.
See mln_runtime_create_map in the
C API reference.
Implementation
MapHandle createMap(MapOptions options) => _attach(
(arena, completion, outMap) => raw.mln_runtime_create_map(
_handle.raw,
_writeMapOptions(options, arena),
outMap,
completion,
nativeDiagnostic,
),
(handle, ready) => _adoptOwned(
handle,
() => MapHandle._(this, _NativeMap(handle), ready),
(handle) {
_check(raw.mln_map_dispose(handle, nativeDiagnostic));
},
),
);