BoxStyle constructor
BoxStyle({
- Box? hoverStyle,
- Box? activeStyle,
- Box? errorStyle,
- Box? disabledStyle,
- String? name,
- Color? color,
- BoxDecoration? decoration,
- EdgeInsets? padding,
- Border? border,
- BorderRadius? borderRadius,
- Color? borderColor,
- Color? textColor,
- FontWeight? textWeight,
- double? textSize,
- TextStyle textStyle = const TextStyle(),
- double? height,
- double? width,
Implementation
BoxStyle({
Box? hoverStyle,
Box? activeStyle,
Box? errorStyle,
Box? disabledStyle,
super.name,
super.color,
super.decoration,
super.padding,
super.border,
super.borderRadius,
super.borderColor,
super.textColor,
super.textWeight,
super.textSize,
super.textStyle,
super.height,
super.width,
}) {
setVariants({
"default": toBox(),
"hover": hoverStyle,
"active": activeStyle,
"error": errorStyle,
"disabled": disabledStyle,
});
}