copyWith method

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