useFunctionsEmulator function
Points Functions at a local emulator. origin is a URL, not a host and
port — the SDK takes it whole.
Implementation
void useFunctionsEmulator(String origin) {
final o = origin.toNativeUtf8();
try {
final rc = fdbFunctionsUseEmulator(o.cast());
if (rc != 0) {
throw StateError('useFunctionsEmulator failed ($rc)');
}
} finally {
calloc.free(o);
}
}