resume method Null safety

void resume()

Implementation

void resume() {
  final s = _suspended!;
  _suspended = null;
  assert(!s.isCompleted);
  s.complete();
}