Returns a JsFunction that captures its 'this' binding and calls f with the value of this passed as the first argument.
factory JsFunction.withThis(Function f) {
var jsFunc = _convertDartFunction(f, captureThis: true);
return new JsFunction._fromJs(jsFunc);
}
© 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/JsFunction.withThis.html