fsrs_dart library

Free Spaced Repetition Scheduler (FSRS) in Dart.

Classes

Fsrs
The Free Spaced Repetition Scheduler (FSRS) engine.
FsrsCard
Represents a flashcard tracked by the FSRS algorithm.
FsrsHistoryEntry
A historical review entry used for replaying scheduling in reschedule.
FsrsItem
A complete review history for a single card used for training.
FsrsItemState
Represents the next state of an item for a given rating.
FsrsMemoryState
Represents the memory state of an item in the FSRS system.
FsrsModelEvaluation
Evaluation metrics of an FSRS model on a training set.
FsrsNextStates
The calculated next states for each of the four possible review ratings.
FsrsRecordLogItem
The outcome of reviewing an FsrsCard, containing the updated card and the review log entry.
FsrsRescheduleResult
The result of rescheduling a card from its review history.
FsrsReview
A single review log entry for card training/optimization.
FsrsReviewLog
Represents a single review log entry recorded after reviewing a card.
FsrsScheduler
Schedules cards using FSRS memory updates combined with short-term learning and relearning steps.

Enums

FsrsCardState
The scheduling state of a card in the spaced repetition workflow.
FsrsRating
Performance rating given during a review.

Typedefs

FsrsRecordLog = Map<FsrsRating, FsrsRecordLogItem>
Map of scheduling outcomes for each review rating.
FsrsSchedulingResult = FsrsRecordLogItem
Convenience alias matching FsrsScheduler terminology.

Exceptions / Errors

FsrsException
Exception thrown when an FSRS operation fails.