getParagraphHighlights static method

List<HighlightModel> getParagraphHighlights(
  1. String bookId,
  2. int chapterIndex,
  3. String paragraphKey
)

Implementation

static List<HighlightModel> getParagraphHighlights(
    String bookId, int chapterIndex, String paragraphKey) {
  return _readAll()
      .where((h) =>
          h.bookId == bookId &&
          h.chapterIndex == chapterIndex &&
          h.paragraphKey == paragraphKey)
      .toList();
}