BoxStyle constructor

BoxStyle({
  1. Box? hoverStyle,
  2. Box? activeStyle,
  3. Box? errorStyle,
  4. Box? disabledStyle,
  5. String? name,
  6. Color? color,
  7. BoxDecoration? decoration,
  8. EdgeInsets? padding,
  9. Border? border,
  10. BorderRadius? borderRadius,
  11. Color? borderColor,
  12. Color? textColor,
  13. FontWeight? textWeight,
  14. double? textSize,
  15. TextStyle textStyle = const TextStyle(),
  16. double? height,
  17. 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,
  });
}