WxBox.circle constructor

const WxBox.circle({
  1. Key? key,
  2. double? radius,
  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 circle shape

Implementation

const WxBox.circle({
  super.key,
  double? radius,
  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 CircleBorder(),
      width = radius != null ? radius * 2 : null,
      height = radius != null ? radius * 2 : null;