clip static method

dynamic clip({
  1. AlignmentGeometry? showPlace,
  2. double? widthFactor,
  3. double? heightFactor,
  4. Widget? child,
  5. 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,
      ),
    ),
  );
}