setAlbum method

void setAlbum(
  1. String? album
)

Implementation

void setAlbum(String? album) {
  if (album != null) {
    for (final comment in _comments) {
      if (comment.name == 'ALBUM') {
        comment.data = utf8.encode(album);
        return;
      }
    }
    _comments.add(VorbisComment('ALBUM', utf8.encode(album)));
  } else {
    for (final comment in _comments) {
      if (comment.name == 'ALBUM') {
        _comments.remove(comment);
        return;
      }
    }
  }
}