getLrcItemByIndex method

LyricSrcItemEntity_c? getLrcItemByIndex(
  1. int index
)

根据 index 获取lrc单项

  • index 越界时返回 Null

Implementation

LyricSrcItemEntity_c? getLrcItemByIndex(int index) {
  if (index < 0 || index >= lrc.length) {
    return null;
  }
  return lrc[index];
}