JsFunction class

Proxies a JavaScript Function object.

Proxies a JavaScript Function object.

Extends
Implements

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.

Instance Properties

hashCode int Inherited
read-only

Instance Methods

apply(List args, {thisArg}) → dynamic
Invokes the JavaScript function with arguments args. If thisArg is supplied it is the value of this for the invocation.
noSuchMethod(Invocation invocation) → dynamic
[noSuchMethod] is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to [noSuchMethod] in an [Invocation]. If [noSuchMethod] returns a value, that value becomes the result of the original invocation.
toString() → String Inherited
Returns the result of the JavaScript objects toString method.
hasProperty(String property) → bool Inherited
Returns true if the JavaScript object contains the specified property either directly or though its prototype chain.
deleteProperty(String property) → void Inherited
Removes property from the JavaScript object.
instanceof(JsFunction type) → bool Inherited
Returns true if the JavaScript object has type in its prototype chain.
callMethod(String method, [List args]) → dynamic Inherited
Calls method on the JavaScript object with the arguments args and returns the result.

Operators

operator []=(property, value) → dynamic Inherited
Sets the value associated with property on the proxied JavaScript object.
operator [](property) → dynamic Inherited
Returns the value associated with property from the proxied JavaScript object.
operator ==(other) → dynamic Inherited
The equality operator.