SpacedRepetitionRouter class
Dispatches to SM-2 or FSRS based on the card's algorithm field.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculate(
{required String algorithm, required int quality, required int repetitions, required double easinessFactor, required int intervalDays, double? stability, double? difficulty, String? cardState, double? lastElapsedDays, double targetRetention = 0.9}) → ReviewResult -
previewIntervals(
{required String algorithm, required int repetitions, required double easinessFactor, required int intervalDays, double? stability, double? difficulty, String? cardState, double? lastElapsedDays, double targetRetention = 0.9}) → Map< String, int> - Preview the next interval for each rating without mutating state.