enableMirrorFallback function
void
enableMirrorFallback()
Wires the mirror-based MirrorContext as the default factory used by
RuntimeContext.current. Call once at the top of main() from
dev/JIT-mode code that doesn't go through the build_runner-generated
bootstrap().
Implementation
void enableMirrorFallback() {
registerDefaultContextFactory(() => mc.instance);
}