copyWith method
GiftChatTheme
copyWith({
- UpgradedGift? gift,
- ThemeSettings? lightSettings,
- 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,
);