ReplaceTextIntent class

An Intent that represents a user interaction that attempts to modify the current TextEditingValue in an input field.

Inheritance

Constructors

ReplaceTextIntent(TextEditingValue currentTextEditingValue, String replacementText, TextRange replacementRange, SelectionChangedCause cause)
Creates a ReplaceTextIntent.
const

Properties

cause SelectionChangedCause
The SelectionChangedCause that triggered the intent.
final
currentTextEditingValue TextEditingValue
The TextEditingValue that this Intent's action should perform on.
final
hashCode int
The hash code for this object.
no setterinherited
replacementRange TextRange
The range of text in currentTextEditingValue that needs to be replaced.
final
replacementText String
The text to replace the original text within the replacementRange with.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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