rotate method

DVModifier rotate(
  1. double degrees
)

Turns the box by degrees, clockwise.

Degrees, not radians -- see rotateDegrees. rotate(45) is a forty-five degree tilt, and rotate(math.pi / 4) is very nearly nothing.

Implementation

DVModifier rotate(double degrees) => _copyWith(rotateDegrees: degrees);