DebtItem class

Represents a single technical debt item.

Constructors

DebtItem({required DebtType type, required String description, required SourceRange location, required String filePath, String? context, DebtSeverity? severity, String? sourceCode})

Properties

context String?
Context (e.g., function name, class name).
final
description String
Description of the debt item.
final
filePath String
File path where debt was detected.
final
hashCode int
The hash code for this object.
no setterinherited
location SourceRange
Location in source code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity DebtSeverity
Severity level (defaults to type's default severity).
final
sourceCode String?
Original source code snippet.
final
type DebtType
Type of debt.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON map.
toString() String
A string representation of this object.
override

Operators

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