Box constructor

const Box({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. Color? color,
  7. bool isCircle = false,
  8. BorderRadius? radius,
  9. BoxBorder? border,
  10. List<BoxShadow>? boxShadows,
  11. Gradient? gradient,
  12. BoxConstraints? constraints,
  13. Clip clipBehavior = Clip.hardEdge,
  14. Widget? child,
})

Func

Implementation

const Box({
  super.key,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.color,
  this.isCircle = false,
  this.radius,
  this.border,
  this.boxShadows,
  this.gradient,
  this.constraints,
  this.clipBehavior = Clip.hardEdge,
  this.child,
});