copyWith method

AlbumInfoEntity copyWith({
  1. bool? resourceState,
  2. List<AlbumInfoSongs>? songs,
  3. int? code,
  4. AlbumInfoAlbum? album,
})

Implementation

AlbumInfoEntity copyWith({
  bool? resourceState,
  List<AlbumInfoSongs>? songs,
  int? code,
  AlbumInfoAlbum? album,
}) {
  return AlbumInfoEntity()
    ..resourceState = resourceState ?? this.resourceState
    ..songs = songs ?? this.songs
    ..code = code ?? this.code
    ..album = album ?? this.album;
}