suspend method Null safety

Future<void> suspend()

Implementation

Future<void> suspend() async {
  assert(_suspended == null);
  final s = _suspended = Completer();
  _caller.model.program.suspendedProgram = this;
  await s.future;
  assert(_suspended == null);
  assert(_caller._fake.real.suspendedProgramRunner == null);
}