loadResolved method

Future<VMBreakpoint> loadResolved()

Reloads this breakpoint once it's resolved.

This will work whether this breakpoint is already resolved or has yet to be resolved. However, it doesn't cause the breakpoint to be resolved.

Implementation

Future<VMBreakpoint> loadResolved() {
  return _scope.getInState(_scope.streams.debug, () async {
    var breakpoint = await load();
    return breakpoint is VMResolvedBreakpoint ? breakpoint : null;
  }, (json) {
    if (json["kind"] != "BreakpointResolved") return null;
    if (json["breakpoint"]["id"] != _id) return null;
    return newVMBreakpoint(_scope, json["breakpoint"]);
  });
}