Box constructor
const
Box({
- Key? key,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- bool isCircle = false,
- BorderRadius? radius,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadows, - Gradient? gradient,
- BoxConstraints? constraints,
- Clip clipBehavior = Clip.hardEdge,
- 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,
});