getLastChapterNumber static method
Returns the number for the last chapter within a book.
Implementation
static int? getLastChapterNumber(dynamic book) {
if (book is String) {
book = findBookNumber(book);
}
if (book is! int) {
return null;
}
if (book > BibleData.lastVerse.length) {
return null;
}
return BibleData.lastVerse[book - 1].length;
}