update method Null safety

Future<UpdateActiveBreakpointResponse> update(
  1. UpdateActiveBreakpointRequest request,
  2. String debuggeeId,
  3. String id,
  4. {String? $fields}

Updates the breakpoint state or mutable fields.

The entire Breakpoint message must be sent back to the controller service. Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the location, condition and expressions fields should not alter the breakpoint semantics. These may only make changes such as canonicalizing a value or snapping the location to the correct line of code.

request - The metadata request object.

Request parameters:

debuggeeId - Required. Identifies the debuggee being debugged.

id - Breakpoint identifier, unique in the scope of the debuggee.

$fields - Selector specifying which fields to include in a partial response.

Completes with a UpdateActiveBreakpointResponse.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.


async.Future<UpdateActiveBreakpointResponse> update(
  UpdateActiveBreakpointRequest request,
  core.String debuggeeId,
  core.String id, {
  core.String? $fields,
}) async {
  final _body = convert.json.encode(request);
  final _queryParams = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],

  final _url = 'v2/controller/debuggees/' +
      commons.escapeVariable('$debuggeeId') +
      '/breakpoints/' +

  final _response = await _requester.request(
    body: _body,
    queryParams: _queryParams,
  return UpdateActiveBreakpointResponse.fromJson(
      _response as core.Map<core.String, core.dynamic>);