Proxies a JavaScript Function object.
Properties
Constructors
- JsFunction.internal()
- JsFunction.withThis(Function f)
-
Returns a JsFunction that captures its 'this' binding and calls
f
with the value of this passed as the first argument.
Operators
-
operator ==(
other) → dynamic -
inherited
The equality operator.…
-
operator [](
property) → dynamic -
inherited
Returns the value associated with
property
from the proxied JavaScript object.… -
operator []=(
property, value) → dynamic -
inherited
Sets the value associated with
property
on the proxied JavaScript object.…
Methods
-
apply(
List args, {thisArg}) → dynamic -
Invokes the JavaScript function with arguments
args
. IfthisArg
is supplied it is the value ofthis
for the invocation. -
callMethod(
String method, [List args]) → dynamic -
inherited
Calls
method
on the JavaScript object with the argumentsargs
and returns the result.… -
deleteProperty(
String property) → void -
inherited
Removes
property
from the JavaScript object.… -
hasProperty(
String property) → bool -
inherited
Returns
true
if the JavaScript object contains the specified property either directly or though its prototype chain.… -
instanceof(
JsFunction type) → bool -
inherited
Returns
true
if the JavaScript object hastype
in its prototype chain.… -
toString(
) → String -
inherited
Returns the result of the JavaScript objects
toString
method.