copyWith method

SongDetailEntity copyWith({
  1. List<SongDetailSongs>? songs,
  2. List<SongDetailPrivileges>? privileges,
  3. int? code,
})

Implementation

SongDetailEntity copyWith({
  List<SongDetailSongs>? songs,
  List<SongDetailPrivileges>? privileges,
  int? code,
}) {
  return SongDetailEntity()
    ..songs = songs ?? this.songs
    ..privileges = privileges ?? this.privileges
    ..code = code ?? this.code;
}