VirtualRemovedBlock class

Represents a block of removed lines to be displayed virtually in the editor.

Virtual removed lines appear between real document lines, showing content that was deleted (e.g., in a git diff). They are rendered without line numbers and are read-only, similar to ghost text.

Example:

VirtualRemovedBlock(
  afterLine: 29,
  content: 'final x = 10;\nfinal y = 20;',
  backgroundColor: Color(0x30E53935),
)

Constructors

VirtualRemovedBlock({required int afterLine, required String content, Color backgroundColor = const Color(0x30E53935), TextStyle? textStyle})
Creates a virtual removed block.
const

Properties

afterLine → int
The line in the current file after which the removed content appears (0-based).
final
backgroundColor → Color
Background color for the removed lines area.
final
content → String
The removed text content. Lines are separated by \n.
final
hashCode → int
The hash code for this object.
no setterinherited
lineCount → int
Number of lines in this removed block.
no setter
lines → List<String>
Individual lines of the removed content.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textStyle → TextStyle?
Text style for the removed content.
final

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