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