JsFunction.withThis constructor

JsFunction.withThis(
  1. Function f
)

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

Implementation

factory JsFunction.withThis(Function f) {
  throw UnsupportedError(
      'JavaScript interop is not supported in this runtime.');
}