ChapterPassage.checked constructor

ChapterPassage.checked({
  1. required BibleBookEnum book,
  2. required int startChapter,
  3. int? endChapter,
})

Creates a chapter passage while enforcing numeric and ordering checks.

Implementation

factory ChapterPassage.checked({
  required BibleBookEnum book,
  required int startChapter,
  int? endChapter,
}) =>
    ChapterPassage(book, startChapter, endChapter);