copyWith method

HeaderLookAndFeel copyWith({
  1. String? backgroundColor,
  2. ButtonLookAndFeel? button,
  3. NavigationLookAndFeel? primaryNavigation,
  4. NavigationLookAndFeel? secondaryNavigation,
  5. SearchFieldLookAndFeel? search,
})

Implementation

HeaderLookAndFeel copyWith(
    {String? backgroundColor,
    ButtonLookAndFeel? button,
    NavigationLookAndFeel? primaryNavigation,
    NavigationLookAndFeel? secondaryNavigation,
    SearchFieldLookAndFeel? search}) {
  return HeaderLookAndFeel(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    button: button ?? this.button,
    primaryNavigation: primaryNavigation ?? this.primaryNavigation,
    secondaryNavigation: secondaryNavigation ?? this.secondaryNavigation,
    search: search ?? this.search,
  );
}