transform method

Widget transform({
  1. Key? key,
  2. required Matrix4 transform,
})

Applies a transformation matrix to this widget.

Parameters:

  • key (Key?, optional): Widget key.
  • transform (Matrix4, required): Transformation matrix.

Returns: Widget — transformed widget.

Implementation

Widget transform({Key? key, required Matrix4 transform}) {
  return Transform(
    key: key,
    transform: transform,
    child: this,
  );
}