Utils class

Constructors

Utils()

Properties

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

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Properties

EASY_BONUS → int
final
INITIAL_DAYS_WITH_JUMP → double
final
INITIAL_DAYS_WITHOUT_JUMP → double
final
INITIAL_FACTOR → double
final
MAX_FACTOR → int
final
MAX_INTERVAL → int
final
MIN_FACTOR → int
final

Static Methods

addReview(List<Review> reviews, Review review) → List<Review>
applyReview(State prev, Review review) State
applyToCardState(CardState prev, DateTime ts, Rating rating) → dynamic
applyToLapsedCardState(LapsedCardState prev, DateTime ts, Rating rating) → dynamic
applyToLearningCardState(LearningCardState prev, DateTime ts, Rating rating) → dynamic
applyToReviewingCardState(ReviewingCardState prev, DateTime ts, Rating rating) → dynamic
calculateDaysLate(ReviewingCardState state, DateTime actual) → dynamic
calculateDueDate(CardState state) → DateTime
computeCardsSchedule(State state, DateTime now) CardsSchedule
computeScheduleFromCardState(CardState state, DateTime now) → dynamic
constrainWithin(double min, int max, double n) → dynamic
dateDiffInDays(DateTime a, DateTime b) → double
forEachCalculSchedule(CardState cardState, DateTime now, CardsSchedule s) → dynamic
getCardIdFromCardState(CardState cardState) → String
pickMostDue(CardsSchedule s, State state) CardId