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