merge method

ZeroStepStyle merge(
  1. ZeroStepStyle? style
)

Implementation

ZeroStepStyle merge(ZeroStepStyle? style) {
  if (style == null) return this;
  return copyWith(
    inactiveColor: style.inactiveColor,
    activeColor: style.activeColor,
    errorColor: style.errorColor,
    iconColor: style.iconColor,
    indexTextStyle:
        indexTextStyle?.merge(style.indexTextStyle) ?? style.indexTextStyle,
    titleTextStyle:
        titleTextStyle?.merge(style.titleTextStyle) ?? style.titleTextStyle,
    subtitleTextStyle: subtitleTextStyle?.merge(style.subtitleTextStyle) ??
        style.subtitleTextStyle,
    contentTextStyle: contentTextStyle?.merge(style.contentTextStyle) ??
        style.contentTextStyle,
    labelTextStyle:
        labelTextStyle?.merge(style.labelTextStyle) ?? style.labelTextStyle,
  );
}