TextEditingEmitter class

A ChangeEmitter that lets you read values from and control a TextField. To use, provide the TextField with the controller property. The controller will be disposed when this is disposed. Should only be used with one TextField at a time.

Inheritance

Constructors

TextEditingEmitter({String text = ''})

Properties

changes Stream<ContainerChange>
The stream of Changes to notify your UI or other state elements that they should update.
read-only, inherited
children List<ChangeEmitter<Change>>
Override to provide a list of all the ChangeEmitters defined in your subclass. This will dispose all children when this class is disposed and will emit a ContainerChange whenever any of the children change so that UI or other elements of your state can update reactively. If you only want a subset of the children to trigger changes, override emittingChildren.
read-only, override
composing ValueEmitter<TextRange>
Control and read composition.
final
controller TextEditingController
final
emitDetailedChanges bool
Whether to emit changes that include detailed information about the specific change. Defaults to false which will emit the same cached change object to minimize garbage collection. [...]
final, inherited
emittingChildren List<ChangeEmitter<Change>>
A list of children that should trigger this container to emit changes. If you want all children to trigger changes, then you don't need to override this getter.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isDisposed bool
Whether this has been disposed.
read-only, inherited
parent ChangeEmitter<Change>
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selection ValueEmitter<TextSelection>
Control and read selection.
final
text ValueEmitter<String>
Control and read the text from a TextField.
final

Methods

addChangeToStream(ContainerChange change) → void
Used by subclasses to broadcast Changes.
@protected, inherited
controllerChangeFromChildChange(ChangeEmitter<Change> child, Change childChange) ContainerChange
override this method in order to create and use your own subclass of ContainerChange
@protected, inherited
dispose() → void
Disposes resources of all children and this.
override
emit({bool quiet = false}) → void
Emits new ContainerChange.any). [...]
inherited
findAncestorOfExactType<T extends ChangeEmitter<Change>>() → T
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerChildren() → void
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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