area method

Rect area(
  1. [Offset offset = Offset.zero]
)

Returns the area of the grid as a rectangle with an optional offset.

The offset is relative to the top-left corner of the grid.

Implementation

Rect area([Offset offset = Offset.zero]) {
  return Rect.fromLTWH(offset.x, offset.y, width, height);
}