Box.from constructor

Box.from(
  1. Box box
)

Implementation

factory Box.from(Box box) {
  return Box(
    color: box.color,
    padding: box.padding,
    decoration: box.decoration,
    border: box.border,
    borderRadius: box.borderRadius,
    borderColor: box.borderColor,
    height: box.height,
    width: box.width,
    textSize: box.textSize,
    textColor: box.textColor,
    textWeight: box.textWeight,
    textStyle: box.textStyle,
  );
}