JavascriptRuntime class abstract
- Implementers
- Available extensions
Constructors
Properties
-
dartContext
↔ Map<
String, dynamic> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
localContext
↔ Map<
String, dynamic> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callFunction(
Pointer< NativeType> fn, Pointer<NativeType> obj) → JsEvalResult -
clearXhrPendingCalls(
) → void -
Available on JavascriptRuntime, provided by the JavascriptRuntimeXhrExtension extension
-
convertValue<
T> (JsEvalResult jsValue) → T? -
dispose(
) → void -
enableFetch(
) → Future< JavascriptRuntime> -
Available on JavascriptRuntime, provided by the JavascriptRuntimeFetchExtension extension
-
enableHandlePromises(
) → dynamic -
Available on JavascriptRuntime, provided by the HandlePromises extension
-
enableXhr(
) → JavascriptRuntime -
Available on JavascriptRuntime, provided by the JavascriptRuntimeXhrExtension extension
-
evaluate(
String code, {String? sourceUrl}) → JsEvalResult -
evaluateAsync(
String code, {String? sourceUrl}) → Future< JsEvalResult> -
executePendingJob(
) → int -
getEngineInstanceId(
) → String -
getPendingXhrCalls(
) → List? -
Available on JavascriptRuntime, provided by the JavascriptRuntimeXhrExtension extension
-
handlePromise(
JsEvalResult value, {Duration? timeout}) → Future< JsEvalResult> -
Available on JavascriptRuntime, provided by the HandlePromises extension
-
hasPendingXhrCalls(
) → bool -
Available on JavascriptRuntime, provided by the JavascriptRuntimeXhrExtension extension
-
init(
) → JavascriptRuntime -
initChannelFunctions(
) → void -
isFulfilledPromise(
int idx) → bool -
Available on JavascriptRuntime, provided by the HandlePromises extension
-
isPendingPromise(
int idx) → bool -
Available on JavascriptRuntime, provided by the HandlePromises extension
-
jsonStringify(
JsEvalResult jsValue) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage(
String channelName, dynamic fn(dynamic args)) → dynamic -
sendMessage(
{required String channelName, required List< String> args, String? uuid}) → dynamic -
setInspectable(
bool inspectable) → void -
setupBridge(
String channelName, void fn(dynamic args)) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
channelFunctionsRegistered
→ Map<
String, Map< String, dynamic Function(dynamic arg)> > -
no setter
- debugEnabled ↔ bool
-
getter/setter pair