scale method
Widget
scale({
- double? xy,
- double? x,
- double? y,
- Offset? origin,
- AlignmentGeometry? alignment,
- bool transformHitTests = true,
- 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,
);
}