W3cubDocs

/Dart 2

dart:js_util library

Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.

Functions

callConstructor(Function constr, List arguments) → dynamic
callMethod(dynamic o, String method, List args) → dynamic
getProperty(dynamic o, dynamic name) → dynamic
hasProperty(dynamic o, dynamic name) → bool
instanceof(dynamic o, Function type) → bool
jsify(dynamic object) → dynamic
WARNING: performance of this method is much worse than other util methods in this library. Only use this method as a last resort. [...]
newObject() → dynamic
setProperty(dynamic o, dynamic name, dynamic value) → dynamic

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-js_util/dart-js_util-library.html