Transform.rotate constructor

Transform.rotate({
  1. required double angle,
  2. PdfPoint? origin,
  3. AlignmentGeometry? alignment = Alignment.center,
  4. Widget? child,
})

Creates a widget that transforms its child using a rotation around the center.

Implementation

Transform.rotate({
  required double angle,
  this.origin,
  this.alignment = Alignment.center,
  Widget? child,
})  : transform = Matrix4.rotationZ(angle),
      adjustLayout = false,
      unconstrained = false,
      super(child: child);