flux_vm library

Flux VM Library

Classes

AsyncNativeFunction
Async native function wrapper
Breakpoint
A breakpoint in Flux code
CachedScript
Cached script metadata
CallFrame
Represents a single active function call
DebugContext
Debug context provided with each debug event
FluxCoroutine
Represents a suspendable/resumable execution context.
FluxDebugger
Debugger for Flux VM
FluxInstance
Represents a class instance at runtime
FluxModule
A module is a namespace containing functions Accessed as module.function() in Flux scripts
FluxProfiler
Profiler for Flux VM
FluxScriptLoader
Hot-update script loader with offline caching
FluxScriptVerifier
Verifies Flux scripts using Ed25519 signatures
FunctionProfile
Profile data for a single function
NativeFunction
Native function wrapper (synchronous)
ObjClosure
Represents a closure - a function with its captured environment
ObjUpvalue
Represents a captured upvalue (closed-over variable)
ProfileReport
Profiling report
ScriptSource
Script source configuration
ScriptUpdateNotifier
Script update notifier for Flutter integration
StackFrame
Information about a stack frame
StdLib
Standard library registry
UpvalueInfo
Upvalue info stored during compilation
VM

Enums

CoroutineState
Coroutine execution state
DebugEvent
Debugger event types
InterpretResult
StepMode
Step execution mode

Constants

framesMax → const int
Maximum number of call frames (call depth)
stackMax → const int
Maximum stack size

Functions

min(int a, int b) int

Typedefs

CoroutineResumeCallback = void Function(FluxCoroutine coroutine, Object? result, Object? error)
Callback type for coroutine resume notifications
DebugListener = void Function(DebugEvent event, DebugContext context)
Debug listener callback
WidgetCallHandler = Object? Function(Object? callee, int argCount, Map<String, dynamic> namedArgs, List<Object?> stack)