DebtSummary class

Summary of calculated debt costs.

Constructors

DebtSummary({required double totalCost, required Map<DebtType, DebtTypeSummary> costByType, required Map<DebtSeverity, double> costBySeverity, required int itemCount, required String unit, required double threshold})
const

Properties

costBySeverity Map<DebtSeverity, double>
Cost breakdown by severity.
final
costByType Map<DebtType, DebtTypeSummary>
Cost breakdown by debt type.
final
exceedsThreshold bool
Whether the total cost exceeds the threshold.
no setter
hashCode int
The hash code for this object.
no setterinherited
itemCount int
Total number of debt items.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold double
Threshold for alerts.
final
totalCost double
Total cost of all debt items.
final
typesByHighestCost List<DebtTypeSummary>
Get types sorted by cost (highest first).
no setter
unit String
Unit of measurement.
final

Methods

getCostForSeverity(DebtSeverity severity) double
Get cost for a specific severity.
getCostForType(DebtType type) double
Get cost for a specific type.
getCountForType(DebtType type) int
Get count for a specific type.
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