merge method

Implementation

StreamBottomAppBarStyle merge(StreamBottomAppBarStyle? other) {
  final _this = (this as StreamBottomAppBarStyle);

  if (other == null || identical(_this, other)) {
    return _this;
  }

  if (!other.canMerge) {
    return other;
  }

  return copyWith(
    surfaceStyle: other.surfaceStyle,
    backgroundColor: other.backgroundColor,
    floatingBackgroundColor: other.floatingBackgroundColor,
    padding: other.padding,
    spacing: other.spacing,
    titleTextStyle:
        _this.titleTextStyle?.merge(other.titleTextStyle) ??
        other.titleTextStyle,
    subtitleTextStyle:
        _this.subtitleTextStyle?.merge(other.subtitleTextStyle) ??
        other.subtitleTextStyle,
    leadingStyle:
        _this.leadingStyle?.merge(other.leadingStyle) ?? other.leadingStyle,
    trailingStyle:
        _this.trailingStyle?.merge(other.trailingStyle) ??
        other.trailingStyle,
  );
}