isChapterAvailable method

bool isChapterAvailable()

章节能力是否可用

判断规则:

  1. 非 live/minimal 场景
  2. 章节数据非空

Implementation

bool isChapterAvailable() {
  if (sceneType == SceneType.live || sceneType == SceneType.minimal) {
    return false;
  }
  if (chapterInfoList.isNotEmpty) {
    return true;
  }
  return false;
}