outputText method
Implementation
void outputText(String text) {
final ctext = text.toNativeUtf16(allocator: calloc).cast<Uint16>();
try {
final result = _dll.nvdaController_speakText(ctext);
if(FAILED(result)) {
throw NvdaException(result);
}
final result2 = _dll.nvdaController_brailleMessage(ctext);
if(FAILED(result2)) {
throw NvdaException(result2);
}
} finally {
calloc.free(ctext);
}
}