bibleBookFromUsfmIdentifier function

BibleBookEnum bibleBookFromUsfmIdentifier(
  1. String identifier
)

Resolves an exact, case-sensitive USFM book identifier.

Throws ArgumentError when identifier is empty, has surrounding whitespace, has the wrong case, or is not represented by BibleBookEnum.

Implementation

BibleBookEnum bibleBookFromUsfmIdentifier(String identifier) =>
    _bookFromIdentifier(
      identifier,
      formatName: 'USFM',
      lookup: _booksByUsfmIdentifier,
    );