copyWith method

SetPinnedSavedMessagesTopics copyWith({
  1. List<int>? savedMessagesTopicIds,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

SetPinnedSavedMessagesTopics copyWith({
  List<int>? savedMessagesTopicIds,
}) =>
    SetPinnedSavedMessagesTopics(
      savedMessagesTopicIds:
          savedMessagesTopicIds ?? this.savedMessagesTopicIds,
    );