DiffCommentBlock class

A comment block to render inline in a GitDiffViewer at a specific renderLine position. The child widget is rendered as an additional row between diff lines, and height tells the viewer how many terminal rows it occupies so scroll metrics stay correct.

Constructors

DiffCommentBlock({required int renderLine, required Widget child, required int height, DiffCommentSide? side})
Creates a diff comment block.
const

Properties

child Widget
The widget to render inline.
final
hashCode int
The hash code for this object.
no setterinherited
height int
How many terminal rows this block occupies.
final
renderLine int
The 0-based render line of the diff line above which this block is positioned.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
side DiffCommentSide?
Which diff side this comment belongs to (addition/removal). Used to align the block under the correct column in side-by-side view.
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