applyToBounds method

Bounds applyToBounds(
  1. Bounds outer
)

Applies this margin to Bounds, returning the inner bounds.

Implementation

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