hasMetUpdateThreshold method

bool hasMetUpdateThreshold(
  1. int currentTokenCount
)

Check if we've met the threshold for the next update.

Implementation

bool hasMetUpdateThreshold(int currentTokenCount) {
  final tokensSinceLast = currentTokenCount - tokensAtLastExtraction;
  return tokensSinceLast >= config.minimumTokensBetweenUpdate;
}