resumeWith method

  1. @mustCallSuper
Future<void> resumeWith({
  1. bool flushBeforeResume = true,
})
inherited

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;
}