xxxxxxxxxx
controller.text = someString;
controller.selection = TextSelection.fromPosition(TextPosition(offset: controller.text.length));
xxxxxxxxxx
controller.text = someString;
controller.selection = TextSelection.fromPosition(TextPosition(offset: controller.text.length));