onRemove property

Future onRemove

A future that fires when this breakpoint is removed.

If the breakpoint is already removed, this will complete immediately.

Implementation

Future get onRemove => _onRemoveMemo.runOnce(() async {
      await _scope.getInState(_scope.streams.debug, () async {
        try {
          await load();
          return false;
        } on VMSentinelException catch (_) {
          return true;
        }
      }, (json) {
        return json["kind"] == "BreakpointRemoved" &&
            json["breakpoint"]["id"] == _id;
      });
    });