shiftCenterLeftOf method
Returns a new rectangle that is positioned within the center-left of the outer
rectangle
Implementation
Rect shiftCenterLeftOf(Rect outer) {
assert(!size.isEmpty);
assert(!outer.size.isEmpty);
final offset = outer.centerLeft.translate(0, -size.height / 2);
return offset & size;
}