InputFeatureState<T extends InputFeature> class
abstract
Abstract base state class for input features.
Manages the lifecycle and state of features that extend text field functionality, such as clear buttons, counters, or custom decorations.
Constructors
Properties
- attached → bool
-
Whether this feature is currently attached to a text field.
no setter
- context → BuildContext
-
The build context for this feature.
no setter
- controller → TextEditingController
-
The text editing controller for the text field.
no setter
- feature → T
-
The input feature associated with this state.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → TextField
-
The parent text field widget.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tickerProvider → TickerProvider
-
The ticker provider for animations.
no setter
Methods
-
buildAbove(
) → Iterable< Widget> - Builds widgets displayed above the input, inside the decoration.
-
buildActions(
) → Iterable< MapEntry< Type, Action< >Intent> > - Builds actions for keyboard shortcuts.
-
buildBelow(
) → Iterable< Widget> - Builds widgets displayed below the input, inside the decoration.
-
buildLeading(
) → Iterable< Widget> - Builds leading widgets for the text field.
-
buildPrefix(
) → Iterable< Widget> - Builds prefix widgets for the text field.
-
buildShortcuts(
) → Iterable< MapEntry< ShortcutActivator, Intent> > - Builds keyboard shortcuts.
-
buildSuffix(
) → Iterable< Widget> - Builds suffix widgets for the text field.
-
buildTrailing(
) → Iterable< Widget> - Builds trailing widgets for the text field.
-
changeText(
String value, {bool submit = false}) → void - Changes the text of the attached text field.
-
didChangeDependencies(
) → void - Called when dependencies change.
-
didFeatureUpdate(
InputFeature oldFeature) → void - Called when the feature is updated.
-
dispose(
) → void - Disposes resources used by this feature state.
-
initState(
) → void - Initializes this feature state.
-
interceptInput(
TextField input) → TextField - Intercepts and modifies the text field configuration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onSelectionChanged(
TextSelection selection) → void - Called when the text field's selection changes.
-
onTextChanged(
String text) → void - Called when the text field's text changes.
-
setState(
VoidCallback fn) → void - Triggers a state update for the attached text field.
-
toString(
) → String -
A string representation of this object.
inherited
-
wrap(
Widget child) → Widget - Wraps the text field widget.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited