BankHealthFactor class

A single contributor to a BankFinancialHealthScore.

Each factor represents one dimension of financial wellness (spending discipline, savings rate, debt load, and so on) with a normalised score between 0.0 (critical) and 1.0 (excellent).

Annotations

Constructors

BankHealthFactor({required String id, required String label, required double score, required IconData icon, String? tip})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
icon IconData
Leading icon for the factor row.
final
id String
Stable identifier, useful when handling factor taps.
final
label String
Human-readable factor name, e.g. 'Savings rate'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
Normalised factor score from 0.0 (critical) to 1.0 (excellent).
final
tip String?
Optional coaching tip rendered under the factor progress bar.
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.
override