copyFrom method
Implementation
@override
AntdBoxStyle copyFrom(covariant AntdBoxStyle? style) {
if (style == null) {
return this;
}
return copyWith(
padding: style.padding,
margin: style.margin,
opacity: style.opacity,
color: style.color,
border: style.border,
radius: style.radius,
textStyle: style.textStyle,
height: style.height,
minHeight: style.minHeight,
width: style.width,
minWidth: style.minWidth,
size: style.size,
layoutModes: style.layoutModes,
backdropFilter: style.backdropFilter,
shadows: style.shadows,
gradient: style.gradient,
alignment: style.alignment,
visibility: style.visibility,
hapticFeedback: style.hapticFeedback,
colorFilter: style.colorFilter,
focusStyle: focusStyle.merge(style.focusStyle),
disabledStyle: disabledStyle.merge(style.disabledStyle),
feedbackStyle: feedbackStyle.merge(style.feedbackStyle),
options:
options == null ? style.options : options?.copyFrom(style.options));
}