resumeWith method
Resumes, optionally discarding data buffered while paused.
resume exists on IPausable with no parameters, and an override cannot usefully widen it — callers holding the base type could never pass the flag. So the parameterised form is its own method and resume delegates here.
Implementation
@mustCallSuper
Future<void> resumeWith({bool flushBeforeResume = true}) async {
_paused = false;
}