dolphinsr_dart
utils
Utils
constrainWithin method
constrainWithin
dolphinsr_dart
utils
Utils
constrainWithin method
Utils class
Constructors
Utils
Properties
hashCode
runtimeType
Methods
noSuchMethod
toString
Operators
operator ==
Static properties
EASY_BONUS
INITIAL_DAYS_WITH_JUMP
INITIAL_DAYS_WITHOUT_JUMP
INITIAL_FACTOR
MAX_FACTOR
MAX_INTERVAL
MIN_FACTOR
Static methods
addReview
applyReview
applyToCardState
applyToLapsedCardState
applyToLearningCardState
applyToReviewingCardState
calculateDaysLate
calculateDueDate
computeCardsSchedule
computeScheduleFromCardState
constrainWithin
dateDiffInDays
forEachCalculSchedule
getCardIdFromCardState
pickMostDue
constrainWithin method
dynamic
constrainWithin
(
double
min
,
int
max
,
double
n
)
Implementation
static constrainWithin(double min, int max, double n) { return math.max(math.min(n, max), min); }