pause method

void pause()

Requests the isolate to pause. This uses the underlying isolates pause implementation to pause the isolate from with the pausing isolate otherwises uses a SendPort to pass through a pause requres to the target

Implementation

void pause() => _isCurrentIsolate
    ? Isolate.current.pause()
    : Isolate(controlPort!,
            pauseCapability: pauseCapability,
            terminateCapability: terminateCapability)
        .pause(pauseCapability);