Fsrs class

FSRS-5 scheduler.

Reference: https://github.com/open-spaced-repetition/fsrs4anki/wiki/The-Algorithm

Constructors

Fsrs({List<double>? parameters})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
w List<double>
final

Methods

calculate({required FsrsState state, required FsrsRating rating, required double elapsedDays, double targetRetention = 0.9}) FsrsResult
Schedule a card given its current state, the user's rating, and the number of elapsedDays since last review. targetRetention controls the desired recall probability (default 0.9).
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

migrateFromSm2({required double easinessFactor, required int intervalDays, required int repetitions}) FsrsState
Approximate FSRS state from SM-2 parameters for cold-start migration.
retrievability(double elapsedDays, double stability) double
Compute retrievability (probability of recall) at elapsedDays given current stability. Public so callers can estimate knowledge decay.

Constants

defaultParameters → const List<double>