LevelUpCelebration class

One LevelUpEvent plus the extra presentation detail LevelUpOverlayController needs that LevelUpEvent itself doesn't carry: where its XP bar starts filling FROM. Every level after the first in a queue starts a fresh bar at 0 — only the very first queued event might start partway through (wherever the player's bar actually was right before the grantXp call that crossed it).

Constructors

LevelUpCelebration({required LevelUpEvent event, double startFraction = 0.0})
const

Properties

event → LevelUpEvent
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startFraction → double
0.0–1.0 — the XP bar's starting position for this event's xpFill phase. Always fills TO 1.0, since reaching 1.0 is what crossing this level means.
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