LibraryContext class

Registration context passed to Library.registerFunctions.

This exposes the active environment and interpreter so library code can look up globals, cache helpers, or create runtime-aware builtins.

Implementers

Constructors

LibraryContext({required Environment environment, LuaRuntime? interpreter})
Creates a registration context for a specific environment.

Properties

environment Environment
The environment receiving this library's exported values.
final
hashCode int
The hash code for this object.
no setterinherited
interpreter LuaRuntime?
The runtime performing registration.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vm LuaRuntime?
The active runtime, exposed with the legacy vm name for older code.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited