copyWith method
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? alias,
- String? name,
- 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;
}