toJSCaptureThis property

  1. @Since('3.6')
JSExportedDartFunction get toJSCaptureThis

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

Identical to toJS, except the resulting JSExportedDartFunction will pass this from JavaScript as the first argument to the converted Function. 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;