checkBook static method

bool checkBook(
  1. String book
)

Validate that a book is in the bible, does not validate mispellings.

Implementation

static bool checkBook(String book) {
  book = book.toLowerCase();
  return BibleData.books.containsKey(book) ||
      BibleData.osisBooks.containsKey(book) ||
      BibleData.shortenedBooks.containsKey(book);
}