Future<void> write(dynamic data) => js_util.promiseToFuture(js_util.callMethod(this, 'write', [data]));