diff --git a/packages/flutter/lib/src/services/text_input.dart b/packages/flutter/lib/src/services/text_input.dart index f546c36ab0..aaddbf579c 100644 --- a/packages/flutter/lib/src/services/text_input.dart +++ b/packages/flutter/lib/src/services/text_input.dart @@ -744,6 +744,9 @@ class TextEditingValue { /// /// The [text], [selection], and [composing] arguments must not be null but /// each have default values. + /// + /// The default value of [selection] is `TextSelection.collapsed(offset: -1)`. + /// This indicates that there is no selection at all. const TextEditingValue({ this.text = '', this.selection = const TextSelection.collapsed(offset: -1),