copyWith method

AccentColor copyWith({
  1. int? id,
  2. int? builtInAccentColorId,
  3. List<int>? lightThemeColors,
  4. List<int>? darkThemeColors,
  5. 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

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,
    );