copyFrom method

  1. @override
AntdIconStyle copyFrom(
  1. covariant AntdIconStyle? style
)
override

Implementation

@override
AntdIconStyle copyFrom(AntdIconStyle? style) {
  return AntdIconStyle(
    size: style?.size ?? size,
    color: style?.color ?? color,
    fill: style?.fill ?? fill,
    weight: style?.weight ?? weight,
    grade: style?.grade ?? grade,
    opticalSize: style?.opticalSize ?? opticalSize,
    shadows: style?.shadows ?? shadows,
    semanticLabel: style?.semanticLabel ?? semanticLabel,
    textDirection: style?.textDirection ?? textDirection,
    applyTextScaling: style?.applyTextScaling ?? applyTextScaling,
    blendMode: style?.blendMode ?? blendMode,
    bodyStyle: bodyStyle.merge(style?.bodyStyle),
    flexStyle: flexStyle.merge(style?.flexStyle),
    childStyle: childStyle.merge(style?.childStyle),
  );
}