Box constructor

Box({
  1. String? name,
  2. Color? color,
  3. EdgeInsets? padding,
  4. BoxDecoration? decoration,
  5. Border? border,
  6. BorderRadius? borderRadius,
  7. Color? borderColor,
  8. double? height,
  9. double? width,
  10. double? textSize,
  11. Color? textColor,
  12. FontWeight? textWeight,
  13. TextStyle textStyle = const TextStyle(),
})

Implementation

Box({
  this.name,
  this.color,
  this.padding,
  this.decoration,
  this.border,
  this.borderRadius,
  this.borderColor,
  this.height,
  this.width,
  this.textSize,
  this.textColor,
  this.textWeight,
  this.textStyle = const TextStyle(),
}) {
  textStyle = textStyle.copyWith(
    fontSize: textSize,
    color: textColor,
    fontWeight: textWeight,
  );
}