expand method

Bounds expand(
  1. double delta
)

Expands the bounds by a delta.

Implementation

Bounds expand(double delta) {
  return Bounds(
    x: x - delta,
    y: y - delta,
    width: width + delta * 2,
    height: height + delta * 2,
  );
}