copyWith method
ChatAvailableReactionsSome
copyWith({
- List<
ReactionType> ? reactions, - int? maxReactionCount,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
ChatAvailableReactionsSome copyWith({
List<ReactionType>? reactions,
int? maxReactionCount,
}) => ChatAvailableReactionsSome(
reactions: reactions ?? this.reactions,
maxReactionCount: maxReactionCount ?? this.maxReactionCount,
);