streamText method
Implementation
TextEditingController streamText(Stream<String> stream) {
final TextEditingController controller = TextEditingController();
subscriptions.add(stream.listen(
(val) {
if (!_isDisposing) {
controller.text = val;
}
},
cancelOnError: false,
onError: (error, stack) {
log.info(error);
log.info(stack);
},
));
disposers.add(controller.dispose);
return controller;
}