node_interop.util library

Utility functions for Dart <> JS interoperability.

Classes

Util

Properties

util Util
read-only

Functions

callConstructor(Function constr, List arguments) → dynamic
callMethod(dynamic o, String method, List args) → dynamic
dartify<T>(Object jsObject) → T
Returns Dart representation from JS Object. [...]
futureToPromise<T>(Future<T> future) Promise
Creates JS Promise which is resolved when future completes. [...]
getProperty(dynamic o, dynamic name) → dynamic
hasProperty(dynamic o, dynamic name) → bool
instanceof(dynamic o, Function type) → bool
jsify(Object dartObject) → dynamic
Returns the JS representation from Dart Object. [...]
newObject() → dynamic
promiseToFuture<T>(Promise promise) → Future<T>
Creates Dart Future which completes when promise is resolved or rejected. [...]
setProperty(dynamic o, dynamic name, dynamic value) → dynamic