Box constructor
const
Box({
- Key? key,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- bool isCircle = false,
- BorderRadius? outerRadius,
- BorderRadius? innerRadius,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadows, - Gradient? gradient,
- BoxConstraints? constraints,
- Clip clipBehavior = Clip.hardEdge,
- bool isClipsToBounds = true,
- Widget? child,
Func
Implementation
const Box({
super.key,
this.width,
this.height,
this.padding,
this.margin,
this.color,
this.isCircle = false,
this.outerRadius,
this.innerRadius,
this.border,
this.boxShadows,
this.gradient,
this.constraints,
this.clipBehavior = Clip.hardEdge,
this.isClipsToBounds = true,
this.child,
});