TokenSmoother constructor

const TokenSmoother({
  1. Duration tick = const Duration(milliseconds: 16),
  2. Duration window = const Duration(milliseconds: 250),
  3. int minRelease = 1,
  4. AtomicChunkPredicate atomic = _neverAtomic,
})

Creates a token stream smoother.

Implementation

const TokenSmoother({
  this.tick = const Duration(milliseconds: 16),
  this.window = const Duration(milliseconds: 250),
  this.minRelease = 1,
  this.atomic = _neverAtomic,
}) : assert(minRelease >= 1, 'minRelease must be at least 1');