expandBounds method

Bounds expandBounds(
  1. Bounds inner
)

Expands Bounds by this margin.

Implementation

Bounds expandBounds(Bounds inner) {
  return Bounds(
    x: inner.x - left,
    y: inner.y - top,
    width: inner.width + horizontal,
    height: inner.height + vertical,
  );
}