dart / 1 / dart-js / jsfunction / jsfunction.withthis.html

JsFunction.withThis factory constructor

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.

Source

factory JsFunction.withThis(Function f) => _withThis(f);

© 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/JsFunction.withThis.html