surround method
Implementation
void surround(Mobject mob,
{int dimToMatch = 0, bool stretch = false, double? buffer}) {
buffer ??= MED_SMALL_BUFFER;
replace(mob, dimToMatch: dimToMatch, stretch: stretch);
var length = mob.lengthOverDim(dimToMatch);
scaleUniformly((length + buffer) / length);
}