copyFrom method
从另一个AntdWrapStyle实例复制属性值(空值不覆盖)
Implementation
@override
AntdWrapStyle copyFrom(AntdWrapStyle? style) {
if (style == null) {
return this;
}
return AntdWrapStyle(
spacing: style.spacing,
runSpacing: style.runSpacing,
alignment: style.alignment,
crossAxisAlignment: style.crossAxisAlignment,
direction: style.direction,
verticalDirection: style.verticalDirection,
textDirection: style.textDirection ?? textDirection,
clipBehavior: style.clipBehavior,
textBaseline: style.textBaseline ?? textBaseline,
runAlignment: style.runAlignment,
);
}