selectLineAndScrollToPlayLine method

void selectLineAndScrollToPlayLine([
  1. bool animation = true
])

Implementation

void selectLineAndScrollToPlayLine([bool animation = true]) {
  selectLine(widget.model?.getCurrentLine(widget.position) ?? 0);
  if (cacheLine != lyricPaint.playingIndex) {
    lyricPaint.highlightWidth = 0;
    cacheLine = lyricPaint.playingIndex;
    handleHighlight();
    scrollToPlayLine(animation);
  }
}