copyWith method

Metas copyWith({
  1. String? id,
  2. String? title,
  3. String? artist,
  4. String? album,
  5. Map<String, dynamic>? extra,
  6. MetasImage? image,
  7. MetasImage? onImageLoadFail,
})

Implementation

Metas copyWith({
  String? id,
  String? title,
  String? artist,
  String? album,
  Map<String, dynamic>? extra,
  MetasImage? image,
  MetasImage? onImageLoadFail,
}) {
  return Metas(
    id: id ?? this.id,
    title: title ?? this.title,
    artist: artist ?? this.artist,
    album: album ?? this.album,
    extra: extra ?? this.extra,
    image: image ?? this.image,
    onImageLoadFail: onImageLoadFail ?? this.onImageLoadFail,
  );
}