KpiDelta class
A change-since-last-period chip rendered next to the KPI value.
Pass either a numeric magnitude (e.g. 0.3, 12, -2) plus an
optional unit ("pt", "%", "/wk"), or a freeform text string for
callers that already format their delta upstream
("↑ 0.3 month/month", "↓ 2 pt"). The arrow glyph is derived from
direction so callers don't have to repeat it in text.
Constructors
- KpiDelta({required KpiDeltaDirection direction, num? magnitude, String? unit, String? text})
-
const
Properties
- direction → KpiDeltaDirection
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- magnitude → num?
-
Optional numeric magnitude. Rendered as
magnitude.toString()plus unit. Negative magnitudes are auto-rewritten as positive — the minus sign is implied by the down arrow.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
Freeform delta text. When provided, takes precedence over
magnitude / unit. The arrow glyph is still prepended from
direction — strip it from the upstream string.
final
- unit → String?
-
Optional unit suffix appended to magnitude ("%", "pt", "/wk", ...).
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