SurroundingRectangle constructor

SurroundingRectangle({
  1. double buff = SMALL_BUFFER,
  2. required Mobject mobject,
  3. Color color = WHITE,
})

Implementation

SurroundingRectangle(
    {this.buff = SMALL_BUFFER, required this.mobject, Color color = WHITE})
    : super(
        width: mobject.getWidth() + 2 * buff,
        height: mobject.getHeight() + 2 * buff,
        color: color,
      ) {
  moveToMobject(mobject);
  setStroke(color: color);
  setFill(color: TRANSPARENT);
}