TextEditingController class
Mutable text value with listener notifications for controlled inputs.
Constructors
- TextEditingController({String text = ''})
-
Creates a text editing controller with optional initial
text.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether text is empty.
no setter
- isNotEmpty → bool
-
Whether text has at least one character.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
Current text value.
getter/setter pair
Methods
-
addListener(
FlintVoidCallback listener) → void - Registers a listener called whenever text changes.
-
clear(
) → void - Clears the current text value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
FlintVoidCallback listener) → void - Removes a previously registered listener.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited