Transform.scale constructor

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

Creates a widget that scales its child uniformly.

Implementation

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