debugRemovePaintCallback static method

void debugRemovePaintCallback(
  1. DebugPaintCallback callback
)

Removes a callback registered with debugAddPaintCallback.

It does not schedule a frame to repaint the RenderViews without the overlay painted by the removed callback. It is up to the owner of the callback to call markNeedsPaint on the relevant RenderViews to repaint them without the overlay.

Does nothing in release mode.

Implementation

static void debugRemovePaintCallback(DebugPaintCallback callback) {
  assert(() {
    _debugPaintCallbacks.remove(callback);
    return true;
  }());
}