Configuration information for an input field.
An InputValue contains the text for the input field as well as the selection extent and the composing range.
Constants
- empty → InputValue
-
An input value that corresponds to the empty string with no selection and no composing range.
const InputValue()
Constructors
- InputValue({String text: '', TextSelection selection: const TextSelection.collapsed(offset: -1), TextRange composing: TextRange.empty })
-
Creates configuration information for an input field
const
Properties
- composing → TextRange
-
The range of text that is still being composed.
read-only - hashCode → int
-
read-only
- selection → TextSelection
-
The range of text that is currently selected.
read-only - text → String
-
The current text being edited.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
copyWith(
{String text, TextSelection selection, TextRange composing }) → InputValue -
Creates a copy of this input value but with the given fields replaced with the new values.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited