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