rows property

Iterable<Rect> get rows

Yields each row as a full-width Rect of height 1.

Implementation

Iterable<Rect> get rows sync* {
  for (var row = y; row < bottom; row++) {
    yield Rect(x, row, width, 1);
  }
}