Throttling constructor
Throttling({
- 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);
}