LevelManager loads and holds the level list and also offers operations on the localStorage to store and retrieve "unlocked" and "current" level
Constructors
- LevelManager(String _path)
-
Constructor
Properties
- current → int
-
Get the index of the level the user is currently at
read / write - path → String
-
read-only
- ready → bool
-
read-only
- size → int
-
How many levels exist, should check if ready first
read-only - unlocked → int
-
Gets the index of the highest level the user has unlocked
read-only - hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
get(
int level) → Level -
Returns a level if it exists, throws a RangeError if it does not exist.
-
load(
) → Future -
Loads all levels
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited