BoxStyle.from constructor

BoxStyle.from(
  1. BoxStyle style
)

Implementation

factory BoxStyle.from(BoxStyle style) {
  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: style.hoverStyle,
    activeStyle: style.activeStyle,
    errorStyle: style.errorStyle,
    disabledStyle: style.disabledStyle,
  );
}