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
GroupCallMessageLevel copyWith({
int? minStarCount,
int? pinDuration,
int? maxTextLength,
int? maxCustomEmojiCount,
int? firstColor,
int? secondColor,
int? backgroundColor,
}) => GroupCallMessageLevel(
minStarCount: minStarCount ?? this.minStarCount,
pinDuration: pinDuration ?? this.pinDuration,
maxTextLength: maxTextLength ?? this.maxTextLength,
maxCustomEmojiCount: maxCustomEmojiCount ?? this.maxCustomEmojiCount,
firstColor: firstColor ?? this.firstColor,
secondColor: secondColor ?? this.secondColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
);