copyWith method
ProfileAccentColor
copyWith({
- int? id,
- ProfileAccentColors? lightThemeColors,
- ProfileAccentColors? darkThemeColors,
- int? minSupergroupChatBoostLevel,
- int? minChannelChatBoostLevel,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ProfileAccentColor copyWith({
int? id,
ProfileAccentColors? lightThemeColors,
ProfileAccentColors? darkThemeColors,
int? minSupergroupChatBoostLevel,
int? minChannelChatBoostLevel,
}) =>
ProfileAccentColor(
id: id ?? this.id,
lightThemeColors: lightThemeColors ?? this.lightThemeColors,
darkThemeColors: darkThemeColors ?? this.darkThemeColors,
minSupergroupChatBoostLevel:
minSupergroupChatBoostLevel ?? this.minSupergroupChatBoostLevel,
minChannelChatBoostLevel:
minChannelChatBoostLevel ?? this.minChannelChatBoostLevel,
);