Milestone class
One row in _MilestonesList. Synthesised from progress + streak data;
not a stored entity. The tone is a visual hint for the trailing pill.
Constructors
- Milestone({required DateTime date, required String title, required String detail, required MilestoneTone tone})
-
const
- Milestone.fromMasteryTransition({required DateTime date, required String topicTitle, required String mastery})
-
Pick a tone heuristically from the mastery transition. Higher levels
read as "forest" (deep), evaluation reads as "plum", everything else
falls back to "ochre" (the streak/retention voice).
factory
Properties
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