BoxStyle.fromBox constructor

BoxStyle.fromBox(
  1. Box style, {
  2. Box? hoverStyle,
  3. Box? activeStyle,
  4. Box? errorStyle,
  5. Box? disabledStyle,
})

Implementation

factory BoxStyle.fromBox(
  Box style, {
  Box? hoverStyle,
  Box? activeStyle,
  Box? errorStyle,
  Box? disabledStyle,
}) {
  return BoxStyle(
    color: style.color,
    decoration: style.decoration,
    padding: style.padding,
    border: style.border,
    borderRadius: style.borderRadius,
    borderColor: style.borderColor,
    textColor: style.textColor,
    textSize: style.textSize,
    textWeight: style.textWeight,
    textStyle: style.textStyle,
    height: style.height,
    width: style.width,
    hoverStyle: hoverStyle,
    activeStyle: activeStyle,
    errorStyle: errorStyle,
    disabledStyle: disabledStyle,
  );
}