surround method
void
surround(})
override
Implementation
@override
void surround(Mobject mob,
{int dimToMatch = 0,
bool stretch = false,
double? buffer,
double bufferFactor = 1.2}) {
replace(mob, dimToMatch: dimToMatch, stretch: stretch);
if (buffer != null) {
print(
'the argument buffer when calling ${getName()}.surround is useless');
}
var w = getWidth();
var h = getHeight();
setWidth(sqrt(w * w + h * h));
scaleUniformly(bufferFactor);
}