TextEditingDeltaReplacement class

A structure representing a replacement of a range of characters with a new sequence of text.

Inheritance
Annotations

Constructors

TextEditingDeltaReplacement({required String oldText, required String replacementText, required TextRange replacedRange, required TextSelection selection, required TextRange composing})
Creates a replacement delta for a given change to the editing state.
const

Properties

composing TextRange
The range of text that is still being composed after the delta has been applied.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
oldText String
The old text state before the delta has occurred.
finalinherited
replacedRange TextRange
The range in oldText that is being replaced.
final
replacementText String
The new text that is replacing replacedRange in oldText.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection TextSelection
The range of text that is currently selected after the delta has been applied.
finalinherited
textReplaced String
The original text that is being replaced in oldText.
no setter

Methods

apply(TextEditingValue value) TextEditingValue
This method will take the given TextEditingValue and return a new TextEditingValue with that instance of TextEditingDelta applied to it.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
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