copyWith method

  1. @override
UpdateFileRemovedFromDownloads copyWith({
  1. int? fileId,
  2. DownloadedFileCounts? counts,
  3. dynamic extra,
  4. int? clientId,
})
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
UpdateFileRemovedFromDownloads copyWith({
  int? fileId,
  DownloadedFileCounts? counts,
  dynamic extra,
  int? clientId,
}) =>
    UpdateFileRemovedFromDownloads(
      fileId: fileId ?? this.fileId,
      counts: counts ?? this.counts,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );