scale method

  1. @widgetFactory
Widget scale({
  1. double? xy,
  2. double? x,
  3. double? y,
  4. Offset? origin,
  5. AlignmentGeometry? alignment,
  6. bool transformHitTests = true,
  7. FilterQuality? filterQuality,
})

Scales this widget by xy for both the x and y axis or x and y separately.

Implementation

@widgetFactory
Widget scale({
  double? xy,
  double? x,
  double? y,
  Offset? origin,
  AlignmentGeometry? alignment,
  bool transformHitTests = true,
  FilterQuality? filterQuality,
}) {
  assert(() {
    _debugCheckParameterCombinations(modifier: 'scale', [
      {'xy': xy},
      {'x': x, 'y': y},
    ]);
    return true;
  }());

  return FleetTransform.scale(
    scaleX: x ?? xy,
    scaleY: y ?? xy,
    origin: origin,
    alignment: alignment,
    transformHitTests: transformHitTests,
    filterQuality: filterQuality,
    child: this,
  );
}