copyWith method
StorageStatisticsByChat
copyWith({
- int? chatId,
- int? size,
- int? count,
- List<
StorageStatisticsByFileType> ? byFileType,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
StorageStatisticsByChat copyWith({
int? chatId,
int? size,
int? count,
List<StorageStatisticsByFileType>? byFileType,
}) =>
StorageStatisticsByChat(
chatId: chatId ?? this.chatId,
size: size ?? this.size,
count: count ?? this.count,
byFileType: byFileType ?? this.byFileType,
);