copyWith method

SongUrlData copyWith({
  1. int? id,
  2. String? url,
  3. int? br,
  4. int? size,
  5. String? md5,
  6. int? code,
  7. int? expi,
  8. String? type,
  9. int? gain,
  10. int? peak,
  11. int? closedGain,
  12. int? closedPeak,
  13. int? fee,
  14. dynamic uf,
  15. int? payed,
  16. int? flag,
  17. bool? canExtend,
  18. String? level,
  19. String? encodeType,
  20. SongUrlDataFreeTrialPrivilege? freeTrialPrivilege,
  21. SongUrlDataFreeTimeTrialPrivilege? freeTimeTrialPrivilege,
  22. int? urlSource,
  23. int? rightSource,
  24. int? time,
  25. String? musicId,
})

Implementation

SongUrlData copyWith({
  int? id,
  String? url,
  int? br,
  int? size,
  String? md5,
  int? code,
  int? expi,
  String? type,
  int? gain,
  int? peak,
  int? closedGain,
  int? closedPeak,
  int? fee,
  dynamic uf,
  int? payed,
  int? flag,
  bool? canExtend,
  String? level,
  String? encodeType,
  SongUrlDataFreeTrialPrivilege? freeTrialPrivilege,
  SongUrlDataFreeTimeTrialPrivilege? freeTimeTrialPrivilege,
  int? urlSource,
  int? rightSource,
  int? time,
  String? musicId,
}) {
  return SongUrlData()
    ..id = id ?? this.id
    ..url = url ?? this.url
    ..br = br ?? this.br
    ..size = size ?? this.size
    ..md5 = md5 ?? this.md5
    ..code = code ?? this.code
    ..expi = expi ?? this.expi
    ..type = type ?? this.type
    ..gain = gain ?? this.gain
    ..peak = peak ?? this.peak
    ..closedGain = closedGain ?? this.closedGain
    ..closedPeak = closedPeak ?? this.closedPeak
    ..fee = fee ?? this.fee
    ..uf = uf ?? this.uf
    ..payed = payed ?? this.payed
    ..flag = flag ?? this.flag
    ..canExtend = canExtend ?? this.canExtend
    ..level = level ?? this.level
    ..encodeType = encodeType ?? this.encodeType
    ..freeTrialPrivilege = freeTrialPrivilege ?? this.freeTrialPrivilege
    ..freeTimeTrialPrivilege = freeTimeTrialPrivilege ?? this.freeTimeTrialPrivilege
    ..urlSource = urlSource ?? this.urlSource
    ..rightSource = rightSource ?? this.rightSource
    ..time = time ?? this.time
    ..musicId = musicId ?? this.musicId;
}