copyWith method

GiftChatTheme copyWith({
  1. UpgradedGift? gift,
  2. ThemeSettings? lightSettings,
  3. ThemeSettings? darkSettings,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GiftChatTheme copyWith({
  UpgradedGift? gift,
  ThemeSettings? lightSettings,
  ThemeSettings? darkSettings,
}) => GiftChatTheme(
  gift: gift ?? this.gift,
  lightSettings: lightSettings ?? this.lightSettings,
  darkSettings: darkSettings ?? this.darkSettings,
);