LastStreak class

This class represents the state where the goal XP is reached at the end.

Constructors

LastStreak.from({required int daysAgo, required DateTime lastReachedGoalAt})
Returns the new instance of LastStreak based on arguments.

Properties

daysAgo int
The days since last reached goal
final
hashCode int
The hash code for this object.
no setteroverride
lastReachedGoalAt DateTime
The last reached goal datetime
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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