transformed method

Widget transformed({
  1. required Matrix4 transform,
  2. Offset? origin,
  3. AlignmentGeometry alignment = Alignment.center,
  4. bool transformHitTests = true,
  5. FilterQuality filterQuality = FilterQuality.low,
  6. Key? key,
})

A widget that applies a transformation before painting its child.

Unlike RotatedBox, which applies a rotation prior to layout, this object applies its transformation just prior to painting, which means the transformation is not taken into account when calculating how much space this widget's child (and thus this widget) consumes.

Implementation

Widget transformed({
  required Matrix4 transform,
  Offset? origin,
  AlignmentGeometry alignment = Alignment.center,
  bool transformHitTests = true,
  FilterQuality filterQuality = FilterQuality.low,
  Key? key,
}) {
  return Transform(
    key: key,
    transform: transform,
    origin: origin,
    alignment: alignment,
    transformHitTests: transformHitTests,
    filterQuality: filterQuality,
    child: this,
  );
}