JsFunction class
A proxy on a JavaScript Function object.
Constructors
- JsFunction.withThis(Function f)
-
Returns a JsFunction that captures its 'this' binding and calls
f
with the value of JavaScriptthis
passed as the first argument.factory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
apply(
List args, { dynamic thisArg }) → dynamic -
Invokes the JavaScript function with arguments
args
. IfthisArg
is supplied it is the value ofthis
for the invocation. -
callMethod(
dynamic method, [ List args ]) → dynamic -
Calls
method
on the JavaScript object with the argumentsargs
and returns the result. [...]inherited -
deleteProperty(
dynamic property) → void -
Removes
property
from the JavaScript object. [...]inherited -
hasProperty(
dynamic property) → bool -
Returns
true
if the JavaScript object contains the specified property either directly or though its prototype chain. [...]inherited -
instanceof(
JsFunction type) → bool -
Returns
true
if the JavaScript object hastype
in its prototype chain. [...]inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns the result of the JavaScript objects
toString
method.inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
-
operator [](
dynamic property) → dynamic -
Returns the value associated with
property
from the proxied JavaScript object. [...]inherited -
operator []=(
dynamic property dynamic value) → void -
inherited