merge method

Implementation

ZeroAppBarStyle merge(ZeroAppBarStyle? other) {
  if (other == null) return this;

  return copyWith(
    backgroundColor: other.backgroundColor,
    foregroundColor: other.foregroundColor,
    height: other.height,
    titleStyle: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
    centerTitle: other.centerTitle,
    statusBarBrightness: other.statusBarBrightness,
    elevation: other.elevation,
    shadowColor: other.shadowColor,
    titleSpacing: other.titleSpacing,
  );
}