TextEditorEdit class

A complex edit that will be applied in one transaction on a TextEditor. This holds a description of the edits and if the edits are valid (i.e. no overlapping regions, document was not changed in the meantime, etc.) they can be applied on a {@link TextDocumentdocument} associated with a {@link TextEditortext editor}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

TextEditorEdit.new({void replace(Object, String)?, void insert(Position, String)?, void delete(Object)?, void setEndOfLine(EndOfLine)?})
factory

Properties

delete ↔ void Function(Object)

Available on TextEditorEdit, provided by the TextEditorEdit$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
insert ↔ void Function(Position, String)

Available on TextEditorEdit, provided by the TextEditorEdit$Typings extension

getter/setter pair
replace ↔ void Function(Object, String)

Available on TextEditorEdit, provided by the TextEditorEdit$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setEndOfLine ↔ void Function(EndOfLine)

Available on TextEditorEdit, provided by the TextEditorEdit$Typings extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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