copyWith method

ProfileAccentColor copyWith({
  1. int? id,
  2. ProfileAccentColors? lightThemeColors,
  3. ProfileAccentColors? darkThemeColors,
  4. int? minSupergroupChatBoostLevel,
  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

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