allowInteropCaptureThis function

Function allowInteropCaptureThis (
  1. Function f
)

Returns a wrapper around function f that can be called from JavaScript using package:js JavaScript interop, passing JavaScript this as the first argument.

See allowInterop.

When called from Dart, null will be passed as the first argument.

Implementation

external Function allowInteropCaptureThis(Function f);

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