📅  最后修改于: 2022-03-11 15:00:50.159000             🧑  作者: Mango
final _newValue = "New value";
_controller.value = TextEditingValue(
text: _newValue,
selection: TextSelection.fromPosition(
TextPosition(offset: _newValue.length),
),
);