export method
The export called name, or null when there is none.
Implementation
Object? export(String name) => scoped((arena) {
final (chars, length) = copyChars(arena, name);
final item = arena<c.wasmtime_extern_t>();
final found = c.wasmtime_instance_export_get(
store.context,
_native(arena),
chars,
length,
item,
);
if (!found) return null;
return externToDart(store, item);
});