inflate method

RRect inflate (double delta)

Returns a new RRect with edges and radii moved outwards by the given delta.

Implementation

RRect inflate(double delta) {
  return RRect._raw(
    left: left - delta,
    top: top - delta,
    right: right + delta,
    bottom: bottom + delta,
    tlRadiusX: tlRadiusX + delta,
    tlRadiusY: tlRadiusY + delta,
    trRadiusX: trRadiusX + delta,
    trRadiusY: trRadiusY + delta,
    blRadiusX: blRadiusX + delta,
    blRadiusY: blRadiusY + delta,
    brRadiusX: brRadiusX + delta,
    brRadiusY: brRadiusY + delta,
  );
}