copyWith method

NewSongEntity copyWith({
  1. List<NewSongData>? data,
  2. int? code,
})

Implementation

NewSongEntity copyWith({
  List<NewSongData>? data,
  int? code,
}) {
  return NewSongEntity()
    ..data = data ?? this.data
    ..code = code ?? this.code;
}