clip static method
dynamic
clip({
- AlignmentGeometry? showPlace,
- double? widthFactor,
- double? heightFactor,
- Widget? child,
- AlignmentGeometry? alignment,
Implementation
static clip({
AlignmentGeometry? showPlace,
double? widthFactor,
double? heightFactor,
Widget? child,
AlignmentGeometry? alignment,
}) {
return Align(
alignment: alignment ?? Alignment.center,
child: ClipRect(
child: Align(
alignment: showPlace ?? Alignment.center,
widthFactor: widthFactor,
heightFactor: heightFactor,
child: child,
),
),
);
}