inflate method Null safety

Rect inflate(
  1. double delta
)

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

Implementation

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