merge method
Merges attributes with other
into new object. Returned instance will
take all attrs of other
that are not null and source object attributes
otherwise.
Implementation
SearchBarAttrs merge(SearchBarAttrs other) {
return SearchBarAttrs(
primaryColor: other.primaryColor ?? this.primaryColor,
secondaryColor: other.secondaryColor ?? this.secondaryColor,
searchBarColor: other.searchBarColor ?? this.searchBarColor,
textBoxBackgroundColor:
other.textBoxBackgroundColor ?? this.textBoxBackgroundColor,
textBoxOutlineColor:
other.textBoxOutlineColor ?? this.textBoxOutlineColor,
loaderBottomMargin: other.loaderBottomMargin ?? this.loaderBottomMargin,
textBoxOutlineWidth:
other.textBoxOutlineWidth ?? this.textBoxOutlineWidth,
textBoxOutlineRadius:
other.textBoxOutlineRadius ?? this.textBoxOutlineRadius,
);
}