Throttling constructor

Throttling({
  1. Duration duration = const Duration(seconds: 1),
})

Implementation

Throttling({Duration duration = const Duration(seconds: 1)})
    : assert(duration is Duration && !duration.isNegative),
      _duration = duration {
  _stateSC.sink.add(true);
}