merge method

Implementation

UMediaMetadata merge(UMediaMetadata other) => UMediaMetadata(
  title: other.title ?? title,
  artist: other.artist ?? artist,
  album: other.album ?? album,
  albumArtist: other.albumArtist ?? albumArtist,
  composer: other.composer ?? composer,
  genre: other.genre ?? genre,
  year: other.year ?? year,
  trackNumber: other.trackNumber ?? trackNumber,
  trackCount: other.trackCount ?? trackCount,
  discNumber: other.discNumber ?? discNumber,
  duration: other.duration ?? duration,
  artwork: other.artwork ?? artwork,
  lyrics: other.lyrics ?? lyrics,
  comment: other.comment ?? comment,
  extras: <String, String>{...extras, ...other.extras},
);