I have a TextField like this:
TextField(
controller: _controller,
..
)
Where _controller
is a TextEditingController
. From outside my TextField. I have an emoji selector. When an emoji is selected, I want to append it to the controller's text, but there's no function like _controller.addText(emoji)
. How can I insert something into the controller's text? Assuming there might be stuff typed before, or after I insert the emoji.