WebApiHost class

Web API state of one JS context: retained JS function handles, Dart timers and in-flight host work. Created by JavascriptRuntime.init and released by JavascriptRuntime.releaseHostCaches before the context is freed.

Properties

config → JsWebApis
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Cancel host work and release JS handles. Idempotent.
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

Static Methods

install(JavascriptRuntime runtime, JsWebApis config, Object? natives) → WebApiHost
Install the configured modules into runtime's current context. Takes ownership of natives.