InsertOperation class

An insertion operation

Inheritance

Constructors

InsertOperation({required int offset, required String text, required TextSelection selectionBefore, required TextSelection selectionAfter, DateTime? timestamp})

Properties

hashCode int
The hash code for this object.
no setterinherited
offset int
Position where text was inserted
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionAfter TextSelection
The cursor position after this edit
finalinherited
selectionBefore TextSelection
The cursor position before this edit
finalinherited
text String
The text that was inserted
final
timestamp DateTime
Timestamp when this edit was made
finalinherited

Methods

canMergeWith(EditOperation other) bool
Check if this operation can be merged with another (for grouping rapid edits)
override
inverse() EditOperation
Create the inverse operation for undo
override
mergeWith(EditOperation other) EditOperation
Merge this operation with another
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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