copyWith method

RecommendedChatFolder copyWith({
  1. ChatFolder? folder,
  2. String? description,
})

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

Implementation

RecommendedChatFolder copyWith({
  ChatFolder? folder,
  String? description,
}) =>
    RecommendedChatFolder(
      folder: folder ?? this.folder,
      description: description ?? this.description,
    );