copyWith method

  1. @override
ChatAvailableReactionsSome copyWith({
  1. List<ReactionType>? reactions,
  2. 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,
);