setAlbumArtist method

void setAlbumArtist(
  1. String? albumArtist
)

Implementation

void setAlbumArtist(String? albumArtist) {
  if (albumArtist != null) {
    if (_vorbisCommentBlock != null) {
      _vorbisCommentBlock!.setAlbumArtist(albumArtist);
    } else {
      final flacMetaBlock = FlacMetaBlock(4, []);
      _flacMetaBlocks.add(flacMetaBlock);
      _vorbisCommentBlock = VorbisCommentBlock(flacMetaBlock);
      _vorbisCommentBlock!.setAlbumArtist(albumArtist);
    }
  } else {
    if (_vorbisCommentBlock != null) {
      _vorbisCommentBlock!.setAlbumArtist(albumArtist);
    }
  }
}