WxBox.rectangle constructor

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

Create a box widget with rectangle shape

Implementation

const WxBox.rectangle({
  super.key,
  this.width,
  this.height,
  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();