copyWith method

LyricSrcEntity_c copyWith({
  1. HashMap<String, dynamic>? info,
  2. List<LyricSrcItemEntity_c>? lrc,
})

Implementation

LyricSrcEntity_c copyWith({
  HashMap<String, dynamic>? info,
  List<LyricSrcItemEntity_c>? lrc,
}) {
  final reSrc = LyricSrcEntity_c(
    info: info ?? this.info,
  );
  if (null != lrc) {
    reSrc.lrc = lrc;
  } else {
    for (int i = 0, len = this.lrc.length; i < len; ++i) {
      reSrc.lrc.add(this.lrc[i].copyWith());
    }
  }
  return reSrc;
}