dart:js_util library

Utility methods to manipulate package:js annotated JavaScript interop 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.

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
Recursively converts a JSON-like collection to JavaScript compatible representation. [...]
newObject() → dynamic
promiseToFuture<T>(dynamic jsPromise) Future<T>
Converts a JavaScript Promise to a Dart Future. [...]
setProperty(dynamic o, dynamic name, dynamic value) → dynamic