Box constructor

const Box({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. BoxConstraints? constraints,
  5. AlignmentGeometry? alignment,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. Color? color,
  9. OutlinedBorder? border,
  10. Color? borderColor,
  11. double? borderWidth,
  12. BorderStyle? borderStyle,
  13. BorderSide? borderSide,
  14. BorderRadius? borderRadius,
  15. BoxShape? shape,
  16. Color? shadowColor,
  17. Clip? clipBehavior,
  18. double? elevation,
  19. String? tooltip,
  20. 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);