W3cubDocs

/Dart 2

JsFunction class

Proxies a JavaScript Function object.

Inheritance

Constructors

JsFunction.withThis(Function f)
factory
Returns a JsFunction that captures its 'this' binding and calls f with the value of this passed as the first argument.

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

apply(List args, { dynamic thisArg }) → dynamic
Invokes the JavaScript function with arguments args. If thisArg is supplied it is the value of this for the invocation.
callMethod(dynamic method, [ List args ]) → dynamic
inherited
Calls method on the JavaScript object with the arguments args and returns the result. [...]
deleteProperty(dynamic property) → void
inherited
Removes property from the JavaScript object. [...]
hasProperty(dynamic 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 has type in 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 toString method.

Operators

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-js/JsFunction-class.html