divideRect method
Implementation
(Rect, Rect, Rect, Rect) divideRect() {
final halfWidth = width / 2;
final halfHeight = height / 2;
final topLeft = Rect.fromLTRB(left, top, left + halfWidth, top + halfHeight);
final topRight = Rect.fromLTRB(left + halfWidth, top, right, top + halfHeight);
final bottomLeft = Rect.fromLTRB(left, top + halfHeight, left + halfWidth, bottom);
final bottomRight = Rect.fromLTRB(left + halfWidth, top + halfHeight, right, bottom);
return (topLeft, topRight, bottomLeft, bottomRight);
}