function
- @Deprecated("Internal Use Only")
Check that that if arg
is a Function it is safe to pass to JavaScript. To make a function safe, call allowInterop or allowInteropCaptureThis.
Source
@Deprecated("Internal Use Only") safeForTypedInterop(arg) { if (CHECK_JS_INVOCATIONS && arg is Function && arg is! JSFunction) { throw new ArgumentError( "Attempt to pass Function '$arg' to JavaScript via without calling allowInterop or allowInteropCaptureThis"); } }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-js/safeForTypedInterop.html