toJSCaptureThis property - FunctionToJSExportedDartFunction extension - dart:js_interop library (original) (raw)

  1. @Since('3.6')

JSExportedDartFunction gettoJSCaptureThis

A callable JavaScript function that wraps this Function and captures thethis value when called.

Identical to toJS, except the resulting JSExportedDartFunction will pass this from JavaScript as the first argument to the convertedFunction. Any Function that is converted with this member should take in an extra parameter at the beginning of the parameter list to handle this.

Implementation

@Since('3.6')
external JSExportedDartFunction get toJSCaptureThis;