Commit fecba009 authored by Adam Barth's avatar Adam Barth

Improve InputValue#toString

parent 5faf84c3
......@@ -66,6 +66,7 @@ class TextRange {
end.hashCode
);
String toString() => 'TextRange(start: $start, end: $end)';
}
/// A range of text that represents a selection.
......
......@@ -101,7 +101,7 @@ class InputValue {
static const InputValue empty = const InputValue();
String toString() => '$runtimeType(text: $text, selection: $selection, composing: $composing)';
String toString() => '$runtimeType(text: \u2524$text\u251C, selection: $selection, composing: $composing)';
bool operator ==(dynamic other) {
if (identical(this, other))
......@@ -207,11 +207,10 @@ class RawInputLineState extends ScrollableState<RawInputLine> {
void didUpdateConfig(RawInputLine oldConfig) {
if (_keyboardClient.inputValue != config.value) {
_keyboardClient.inputValue = config.value;
if (_isAttachedToKeyboard) {
if (_isAttachedToKeyboard)
_keyboardHandle.setEditingState(_keyboardClient.editingState);
}
}
}
bool get _isAttachedToKeyboard => _keyboardHandle != null && _keyboardHandle.attached;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment