checkOffset method
check offset illegal true is OK false is illegal
Implementation
bool checkOffset(double? offset) {
if (offset == null) return false;
calculateTotalHeight();
if (offset >= maxOffset && offset <= 0) {
return true;
} else {
if (offset <= maxOffset && offset > _lyricOffset) {
return true;
}
}
LyricsLog.logD("越界取消偏移 可偏移:$maxOffset 目标偏移:$offset 当前:$_lyricOffset ");
return false;
}