clear method

void clear([
  1. Rect? bounds
])

Clears the grid, setting all elements to empty.

If bounds is provided, only the elements within the bounds are cleared.

Implementation

void clear([Rect? bounds]) => fill(empty, bounds);