withGradient method

VxBox withGradient(
  1. Gradient gradient
)

Sets the defined gradient to the decorated box.

Implementation

VxBox withGradient(Gradient gradient) => this.._gradient = gradient;