DartdocBlock class

Represents a block of Dartdoc comments extracted from source code.

This class encapsulates the structure and metadata of a comment block, including its content, formatting style, and positioning information needed for proper reformatting.

Constructors

DartdocBlock({required List<String> lines, required int lineCount, required String leadingWhitespace, required bool isMultiLine})
Creates a new Dartdoc comment block.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isMultiLine bool
Whether this is a multi-line (/** */) or single-line (///) comment.
final
leadingWhitespace String
The leading whitespace that should be preserved for indentation.
final
lineCount int
The number of lines this block spans in the original file.
final
lines List<String>
The lines that make up this comment block.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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