dispatchResize method

void dispatchResize(
  1. Size newContentSize,
  2. Size newBorderSize
)

Implementation

void dispatchResize(
  Size newContentSize,
  Size newBorderSize,
) {
  if (!needResizeNotify(newContentSize, newBorderSize)) {
    return;
  }
  preContentSize = newContentSize;
  preBorderSize = newBorderSize;

  _dispatchResizeChange(ResizeObserverEntry(
      borderBoxSize: newBorderSize,
      contentBoxSize: newContentSize,
      devicePixelContentBoxSize: newContentSize,
      contentRect: newBorderSize));
}