getNotEmptyLineHeight method

int getNotEmptyLineHeight (
  1. List<Lyric> lyrics
)

因空行高度与非空行高度不一致,获取非空行的位置

Implementation

int getNotEmptyLineHeight(List<Lyric> lyrics) =>
    lyrics.indexOf(lyrics.firstWhere((lyric) => lyric.lyric.trim().isNotEmpty,
        orElse: () => lyrics.first));