encodeLrcString static method

String encodeLrcString(
  1. List<LyricSrcItemEntity_c> lrclist
)

lrclist 编码为 lrc 规范的字符串,以便保存回 .lrc 文件

Implementation

static String encodeLrcString(List<LyricSrcItemEntity_c> lrclist) {
  var data = "";
  for (int i = 0, len = lrclist.length; i < len; ++i) {
    data += "[${lrclist[i].timeStr}]${lrclist[i].content}\n";
  }
  return data;
}