PassageParser constructor

PassageParser({
  1. ReferenceParser? referenceParser,
  2. Set<BibleBookEnum>? singleChapterBooks,
})

Implementation

factory PassageParser({
  ReferenceParser? referenceParser,
  Set<BibleBookEnum>? singleChapterBooks,
}) {
  final books = singleChapterBooks ?? _defaultSingleChapterBooks;
  return PassageParser._(
    referenceParser ?? ReferenceParser.standard,
    Set<BibleBookEnum>.unmodifiable(books),
  );
}