transform method

Widget transform({
  1. Key? key,
  2. required Matrix4 transform,
  3. Offset? origin,
  4. AlignmentGeometry? alignment,
  5. bool transformHitTests = true,
  6. bool animate = false,
})

Implementation

Widget transform({
  Key? key,
  required Matrix4 transform,
  Offset? origin,
  AlignmentGeometry? alignment,
  bool transformHitTests = true,
  bool animate = false,
}) =>
    animate
        ? _StyledAnimatedBuilder(
            key: key,
            builder: (animation) {
              return _AnimatedTransform(
                child: this,
                transform: transform,
                origin: origin,
                alignment: alignment,
                transformHitTests: transformHitTests,
                duration: animation.duration,
                curve: animation.curve,
              );
            },
          )
        : Transform(
            key: key,
            transform: transform,
            alignment: alignment,
            origin: origin,
            transformHitTests: transformHitTests,
            child: this,
          );