функция
- @Deprecated("Только для внутреннего использования")
Проверяет, что если arg является Функцией, её безопасно передавать в JavaScript. Чтобы сделать функцию безопасной, вызовите allowInterop или allowInteropCaptureThis.
Исходный код
@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