liveTextInputEnabled property
override
Whether Live Text input is enabled.
See also:
- LiveText, where the availability of Live Text input can be obtained.
- LiveTextInputStatusNotifier, where the status of Live Text can be listened to.
Implementation
@override
bool get liveTextInputEnabled {
return _liveTextInputStatus?.value == LiveTextInputStatus.enabled &&
!widget.obscureText &&
!widget.readOnly &&
textEditingValue.selection.isCollapsed;
}