SortEngine class

Constructors

SortEngine.configMulti(Duration timeScale, int maxEntries, double msWeight, double entryWeight)
A complex multi sorting engine with user-defined value curves.
SortEngine.entriesOnly()
A simple engine that sorts entries based on how many times they've been entered. This engine does not use any recency sorting.
SortEngine.manual(double scoreFunc(SortValue element))
You can manually define a function to score a given _SortValue on a scale of 0 to 1. A _SortValue consists of msToNow, which is how many ms ago the entry was submitted, and numEntries, how many times the entry has been submitted.
SortEngine.msOnly()
A simple engine that sorts entries based on how recently they've been entered. This engine does not use any number-of-entries sorting.
SortEngine.simpleMulti(double msWeight, double entryWeight)
A simpler multi sorting engine with predefined value curves.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scoreFunc double Function(SortValue element)
getter/setter pair

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