JavaScriptDarwin class

The Darwin implementation of JavaScriptPlatform.

Inheritance
  • Object
  • PlatformInterface
  • JavaScriptPlatform
  • JavaScriptDarwin

Constructors

JavaScriptDarwin.new()

Properties

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

Methods

addJavaScriptChannel(String javaScriptInstanceId, JavaScriptChannelParams javaScriptChannelParams) Future<void>
Adds a new JavaScript channel to the set of enabled channels.
override
dispose(String javaScriptInstanceId) Future<void>
Disposes of the JavaScript environment with id javaScriptInstanceId.
override
getEnabledChannels(String javaScriptInstanceId) Map<String, JavaScriptChannelParams>
getPlatformEnvironmentInstanceId(String javaScriptInstanceId) String
Returns the underlying javascript environment's identifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeJavaScriptChannel(String javaScriptInstanceId, String javaScriptChannelName) Future<void>
Removes the JavaScript channel with the matching name from the set of enabled channels.
override
runJavaScriptFromFileReturningResult(String javaScriptInstanceId, String javaScriptFilePath) Future<Object?>
Loads the content of of file from javaScriptFilePath and evaluates it as javascript code in the context of the javascript environment with id javaScriptInstanceId, and returns the result.
override
runJavaScriptReturningResult(String javaScriptInstanceId, String javaScript) Future<Object?>
Evaluates the given JavaScript code javaScript in the context of the javascript environment with id javaScriptInstanceId, and returns the result.
override
setIsInspectable(String javaScriptInstanceId, bool isInspectable) Future<void>
Sets whether the underlying JavaScript environment is inspectable.
override
startNewJavaScriptEnvironment(String javaScriptInstanceId) Future<void>
Starts a new JavaScript environment with isolated state by id javaScriptInstanceId.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith() → void
Registers this class as the default instance of JavaScriptPlatform