positionRect method
Position a child inside a Rect with an Alignment, this should only be called after BoxyChild.layout.
See also:
Implementation
void positionRect(Rect rect, [Alignment alignment = Alignment.center]) {
position(alignment.inscribe(size, rect).topLeft);
}