setDartApi method
Selects the pure-Dart backend; no native library or WASM setup required.
Implementation
void setDartApi({bool seal = false}) {
_checkNotSealed('setDartApi');
// Pure-Dart backend: no Bu.init / native library required.
_backend = null;
// The backend RNG only exists on native: restore the Fortuna default so
// generateRandom keeps working after switching back from Rust.
// Must run before sealing: once sealed, setupRandom throws.
QuickCrypto.setupRandom(null);
setApi(dartApi(), seal: seal);
}