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(
disabledDetailColor:
other.disabledDetailColor ?? this.disabledDetailColor,
primaryDetailColor: other.primaryDetailColor ?? this.primaryDetailColor,
secondaryDetailColor:
other.secondaryDetailColor ?? this.secondaryDetailColor,
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,
searchInputMargin: other.searchInputMargin ?? this.searchInputMargin,
statusBarColor: other.statusBarColor ?? this.statusBarColor,
);
}