WxBox.square constructor

const WxBox.square({
  1. Key? key,
  2. double? size,
  3. BoxConstraints? constraints,
  4. AlignmentGeometry? alignment,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? margin,
  7. DecorationImage? image,
  8. List<BoxShadow>? shadows,
  9. Gradient? gradient,
  10. Color? color,
  11. Color? borderColor,
  12. double? borderWidth,
  13. BorderStyle? borderStyle,
  14. double? borderOffset,
  15. BorderSide? borderSide,
  16. BorderRadius? borderRadius,
  17. Clip? clipBehavior,
  18. Color? elevationColor,
  19. double? elevation,
  20. Widget? child,
})

Create a box widget with square size

Implementation

const WxBox.square({
  super.key,
  double? size,
  this.constraints,
  this.alignment,
  this.padding,
  this.margin,
  this.image,
  this.shadows,
  this.gradient,
  this.color,
  this.borderColor,
  this.borderWidth,
  this.borderStyle,
  this.borderOffset,
  this.borderSide,
  this.borderRadius,
  this.clipBehavior,
  this.elevationColor,
  this.elevation,
  this.child,
})  : border = const RoundedRectangleBorder(),
      width = size,
      height = size;