scale method

Widget scale({
  1. Key? key,
  2. double? all,
  3. double? x,
  4. double? y,
  5. Offset? origin,
  6. AlignmentGeometry alignment = Alignment.center,
  7. bool transformHitTests = true,
  8. bool animate = false,
})

Implementation

Widget scale({
  Key? key,
  double? all,
  double? x,
  double? y,
  Offset? origin,
  AlignmentGeometry alignment = Alignment.center,
  bool transformHitTests = true,
  bool animate = false,
}) =>
    animate
        ? _StyledAnimatedBuilder(
            key: key,
            builder: (animation) {
              return _AnimatedTransform(
                child: this,
                transform: Matrix4.diagonal3Values(
                    x ?? all ?? 0, y ?? all ?? 0, 1.0),
                alignment: alignment,
                transformHitTests: transformHitTests,
                duration: animation.duration,
                curve: animation.curve,
              );
            },
          )
        : Transform(
            key: key,
            transform:
                Matrix4.diagonal3Values(x ?? all ?? 0, y ?? all ?? 0, 1.0),
            alignment: alignment,
            child: this,
            origin: origin,
            transformHitTests: transformHitTests,
          );