TokenSmoother constructor
const
TokenSmoother({
- Duration tick = const Duration(milliseconds: 16),
- Duration window = const Duration(milliseconds: 250),
- int minRelease = 1,
- 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');