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