pause method Null safety

  1. @override
Future<Success> pause(
  1. String isolateId
)
override

The pause RPC is used to interrupt a running isolate. The RPC enqueues the interrupt request and potentially returns before the isolate is paused.

When the isolate is paused an event will be sent on the Debug stream.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

See Success.

This method will throw a SentinelException in the case a Sentinel is returned.

Implementation

@override
Future<Success> pause(String isolateId) =>
    _call('pause', {'isolateId': isolateId});