GoalItem class

Single level goal model representing one objective in a level HUD (FEAT-125).

Constructors

GoalItem({required String id, required String label, required Widget icon, required int target, int current = 0})

Properties

current → int
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget
final
id → String
final
isCompleted → bool
Whether this goal has reached or exceeded its target.
no setter
label → String
final
remaining → int
Remaining count needed to complete this goal (clamped to >= 0).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → int
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