js_util library

Allows interoperability with Javascript APIs.

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
promiseToFuture<T>(dynamic jsPromise) → Future<T>
Converts a JavaScript Promise to a Dart Future. [...]
setProperty(dynamic o, dynamic name, dynamic value) → dynamic