setComment method

void setComment(
  1. String? comment
)

Implementation

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