copyWith method

NewSongData copyWith({
  1. bool? starred,
  2. int? popularity,
  3. int? starredNum,
  4. int? playedNum,
  5. int? dayPlays,
  6. int? hearTime,
  7. String? mp3Url,
  8. NewSongDataPrivilege? privilege,
  9. int? st,
  10. bool? exclusive,
  11. List<NewSongDataArtists>? artists,
  12. int? score,
  13. NewSongDataHMusic? hMusic,
  14. NewSongDataMMusic? mMusic,
  15. NewSongDataLMusic? lMusic,
  16. NewSongDataAlbum? album,
  17. String? commentThreadId,
  18. int? fee,
  19. int? mvid,
  20. String? copyFrom,
  21. String? ringtone,
  22. String? disc,
  23. int? no,
  24. int? rtype,
  25. int? copyrightId,
  26. NewSongDataBMusic? bMusic,
  27. String? rtUrl,
  28. int? ftype,
  29. int? position,
  30. int? duration,
  31. int? status,
  32. List? alias,
  33. String? name,
  34. int? id,
})

Implementation

NewSongData copyWith({
  bool? starred,
  int? popularity,
  int? starredNum,
  int? playedNum,
  int? dayPlays,
  int? hearTime,
  String? mp3Url,
  NewSongDataPrivilege? privilege,
  int? st,
  bool? exclusive,
  List<NewSongDataArtists>? artists,
  int? score,
  NewSongDataHMusic? hMusic,
  NewSongDataMMusic? mMusic,
  NewSongDataLMusic? lMusic,
  NewSongDataAlbum? album,
  String? commentThreadId,
  int? fee,
  int? mvid,
  String? copyFrom,
  String? ringtone,
  String? disc,
  int? no,
  int? rtype,
  int? copyrightId,
  NewSongDataBMusic? bMusic,
  String? rtUrl,
  int? ftype,
  int? position,
  int? duration,
  int? status,
  List<dynamic>? alias,
  String? name,
  int? id,
}) {
  return NewSongData()
    ..starred = starred ?? this.starred
    ..popularity = popularity ?? this.popularity
    ..starredNum = starredNum ?? this.starredNum
    ..playedNum = playedNum ?? this.playedNum
    ..dayPlays = dayPlays ?? this.dayPlays
    ..hearTime = hearTime ?? this.hearTime
    ..mp3Url = mp3Url ?? this.mp3Url
    ..privilege = privilege ?? this.privilege
    ..st = st ?? this.st
    ..exclusive = exclusive ?? this.exclusive
    ..artists = artists ?? this.artists
    ..score = score ?? this.score
    ..hMusic = hMusic ?? this.hMusic
    ..mMusic = mMusic ?? this.mMusic
    ..lMusic = lMusic ?? this.lMusic
    ..album = album ?? this.album
    ..commentThreadId = commentThreadId ?? this.commentThreadId
    ..fee = fee ?? this.fee
    ..mvid = mvid ?? this.mvid
    ..copyFrom = copyFrom ?? this.copyFrom
    ..ringtone = ringtone ?? this.ringtone
    ..disc = disc ?? this.disc
    ..no = no ?? this.no
    ..rtype = rtype ?? this.rtype
    ..copyrightId = copyrightId ?? this.copyrightId
    ..bMusic = bMusic ?? this.bMusic
    ..rtUrl = rtUrl ?? this.rtUrl
    ..ftype = ftype ?? this.ftype
    ..position = position ?? this.position
    ..duration = duration ?? this.duration
    ..status = status ?? this.status
    ..alias = alias ?? this.alias
    ..name = name ?? this.name
    ..id = id ?? this.id;
}