TextEditingControllerObserver class

An observer that manages a TextEditingController.

Inheritance

Constructors

TextEditingControllerObserver(State<StatefulWidget> state, {String? text, TextEditingValue? editingValue, Object? key()?})
TextEditingControllerObserver.fromValue(State<StatefulWidget> state, {required TextEditingValue value})
Creates a TextEditingControllerObserver from a starting value.
factory

Properties

currentKey Object?
The current key value used to detect changes.
getter/setter pairinherited
editingValue TextEditingValue?
The initial editing value.
final
hashCode int
The hash code for this object.
no setterinherited
key Object? Function()?
A function that returns a key to identify when the target needs to be rebuilt.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state State<StatefulWidget>
The State object that this observer is attached to.
finalinherited
target TextEditingController
The managed target object, such as a controller.
getter/setter pairinherited
text String?
The initial text value.
final

Methods

addLifecycleObserver(LifecycleObserver observer) → void
Registers a LifecycleObserver to be managed by this state.
inherited
buildTarget() TextEditingController
Builds the target instance V.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBuild(BuildContext context) → void
Called during the build phase of the widget.
inherited
onDidUpdateWidget() → void
Called when the widget configuration updates.
inherited
onDispose() → void
Called when the state is disposed.
inherited
onDisposeTarget(TextEditingController target) → void
Override this method to perform cleanup for the target.
override
onInitState() → void
Called when the observer is initialized.
inherited
safeSetState(VoidCallback fn) → void
Safely calls setState on the managed state.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited