RankGenerator class

A class for generating ranks based on a percentage of completion.

Constructors

RankGenerator({int percentage = 100})
Creates a RankGenerator with the specified percentage.

Properties

hashCode int
The hash code for this object.
no setterinherited
percentage int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(OnRankGenerateListener listener) → void
Adds a listener to be notified when a rank is generated.
init(int value) → void
Initializes the RankGenerator with the total value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(int value) → void
Updates the RankGenerator with the current progress value.

Operators

operator ==(Object other) bool
The equality operator.
inherited