inflate method

Rectangle inflate(
  1. double delta
)

Returns a new rectangle with edges moved outwards by the given delta.

Implementation

Rectangle inflate(double delta) {
  return Rectangle.fromLTRB(
      left - delta, top - delta, right + delta, bottom + delta);
}