requireUserPermissionToResume method

Future<Success> requireUserPermissionToResume({
  1. bool onPauseStart = false,
  2. bool onPauseExit = false,
})

The requireUserPermissionToResume RPC notifies DDS if it should wait for a VmService.resume request to resume isolates paused on start or exit.

This RPC should only be invoked by tooling which launched the target Dart process and knows if the user indicated they wanted isolates paused on start or exit.

Implementation

Future<Success> requireUserPermissionToResume({
  bool onPauseStart = false,
  bool onPauseExit = false,
}) async {
  if (!(await _versionCheck(2, 0))) {
    throw UnimplementedError(
      'requireUserPermissionToResume requires DDS version 2.0',
    );
  }
  return _callHelper<Success>(
    'requireUserPermissionToResume',
    args: {
      'onPauseStart': onPauseStart,
      'onPauseExit': onPauseExit,
    },
  );
}