JsFunction class
Proxies a JavaScript Function object.
Constructors
- JsFunction.internal()
- JsFunction.withThis(Function f) factory
-
Returns a JsFunction that captures its 'this' binding and calls
fwith the value of this passed as the first argument.
Properties
- hashCode → int read-only, inherited
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → dynamic inherited -
The equality operator.
- operator [](
property) → dynamic inherited -
Returns the value associated with
propertyfrom the proxied JavaScript object. - operator []=(
property, value) → dynamic inherited -
Sets the value associated with
propertyon the proxied JavaScript object.
Methods
- apply(
List args, { thisArg }) → dynamic -
Invokes the JavaScript function with arguments
args. IfthisArgis supplied it is the value ofthisfor the invocation. - callMethod(
String method, [ List args ]) → dynamic inherited -
Calls
methodon the JavaScript object with the argumentsargsand returns the result. - deleteProperty(
String property) → void inherited -
Removes
propertyfrom the JavaScript object. - hasProperty(
String property) → bool inherited -
Returns
trueif the JavaScript object contains the specified property either directly or though its prototype chain. - instanceof(
JsFunction type) → bool inherited -
Returns
trueif the JavaScript object hastypein its prototype chain. - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- toString(
) → String inherited -
Returns the result of the JavaScript objects
toStringmethod.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-js/JsFunction-class.html