InterleavingEngine class
Topic interleaving logic for quiz and practice sessions.
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
-
selectInterleavingTopics(
{required String currentTopicId, required String currentDomainId, required Map< String, String> masteryMap, required Map<String, String> topicDomainMap, required List<String> recentTopicIds, int maxTopics = 3}) → List<String> - Select 2-3 topics suitable for interleaving with the current topic.
-
shouldInterleave(
int questionIndex, {double ratio = 0.25}) → bool - Whether the current question index should be an interleaved question.