PlayerProgressionSnapshot class
Reactive snapshot of one player's progression — level/xpIntoLevel/ xpToNextLevel are always derived fresh from totalXpEarned against the curve (never persisted directly), so they can never drift out of sync with it.
Constructors
- PlayerProgressionSnapshot({required int level, required int xpIntoLevel, required int xpToNextLevel, required int totalXpEarned})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMaxLevel → bool
-
no setter
- level → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalXpEarned → int
-
final
- xpIntoLevel → int
-
final
- xpToNextLevel → 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