copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
PushMessageContentMediaAlbum copyWith({
int? totalCount,
bool? hasPhotos,
bool? hasVideos,
bool? hasAudios,
bool? hasDocuments,
}) =>
PushMessageContentMediaAlbum(
totalCount: totalCount ?? this.totalCount,
hasPhotos: hasPhotos ?? this.hasPhotos,
hasVideos: hasVideos ?? this.hasVideos,
hasAudios: hasAudios ?? this.hasAudios,
hasDocuments: hasDocuments ?? this.hasDocuments,
);