Box constructor
Box({
- String? name,
- Color? color,
- EdgeInsets? padding,
- BoxDecoration? decoration,
- Border? border,
- BorderRadius? borderRadius,
- Color? borderColor,
- double? height,
- double? width,
- double? textSize,
- Color? textColor,
- FontWeight? textWeight,
- 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,
);
}