Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:js_interop_unsafe
dart:js_interop_unsafe
description

dart:js_interop_unsafe library

Utility methods to manipulate JavaScript objects dynamically.

This library is typically meant to be used when the names of properties ormethods are not known statically. This library is similar todart:js_util,except the methods here are extension methods that use JS types. Thisallows code using these functions to also be compiled to WebAssembly.

In general, prefer to write JS interop interfaces and external staticinterop members usingdart:js_interop. This library is meant to workaround issues and help with migration from older JS interop libraries.

Note

As the name suggests, usage of this librarycan be unsafe. This meansthat safe usage of these methods cannot necessarily be verifiedstatically. Prefer using statically analyzable values like constants orliterals for property or method names so that usage can be verified. Thislibrary should be used cautiously and only when the same effect cannot beachieved with static interop.

Extensions

JSFunctionUnsafeUtilExtension onJSFunction
Utility methods to callJSFunctions as constructors.
JSObjectUnsafeUtilExtension onJSObject
Utility methods to check, get, set, and call properties on aJSObject.
  1. Dart
  2. dart:js_interop_unsafe
DartSDK
  1. Libraries
  2. Core
  3. dart:async
  4. dart:collection
  5. dart:convert
  6. dart:core
  7. dart:developer
  8. dart:math
  9. dart:typed_data
  10. VM
  11. dart:ffi
  12. dart:io
  13. dart:isolate
  14. dart:mirrors
  15. Web
  16. package:webopen_in_new
  17. dart:js_interop
  18. dart:js_interop_unsafe
  19. Web (Legacy)
  20. dart:html
  21. dart:indexed_db
  22. dart:js
  23. dart:js_util
  24. dart:svg
  25. dart:web_audio
  26. dart:web_gl
dart:js_interop_unsafe library

[8]ページ先頭

©2009-2025 Movatter.jp