Box constructor
const
Box({
- Key? key,
- double? width,
- double? height,
- BoxConstraints? constraints,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- OutlinedBorder? border,
- Color? borderColor,
- double? borderWidth,
- BorderStyle? borderStyle,
- BorderSide? borderSide,
- BorderRadius? borderRadius,
- BoxShape? shape,
- Color? shadowColor,
- Clip? clipBehavior,
- double? elevation,
- String? tooltip,
- Widget? child,
Implementation
const Box({
Key? key,
this.width,
this.height,
this.constraints,
this.alignment,
this.padding,
this.margin,
this.color,
this.border,
this.borderColor,
this.borderWidth,
this.borderStyle,
this.borderSide,
this.borderRadius,
this.shape,
this.shadowColor,
this.clipBehavior,
this.elevation,
this.tooltip,
this.child,
}) : super(key: key);