text property
String?
text
输入的文本内容
input text
Implementation
String? get text => (_state?.controller?.value.text) ?? null;
主动更新输入文本
Actively update input text
Implementation
set text(String? value) {
if (_state?.controller?.text != value) {
_state?.controller?.clear();
_state?.controller?.text = value!;
_state?.controller?.selection =
TextSelection.collapsed(offset: value?.length ?? 0);
_listener?.call();
}
}