ReferenceParseMetadata class final

Metadata captured while a reference is parsed successfully.

Constructors

ReferenceParseMetadata({required String normalizedInput, Iterable<ReferenceBookTokenMatch> bookMatches = const []})

Properties

alternateMatches → List<ReferenceBookCandidate>
All non-selected book candidates in source order.
no setter
bookMatches → List<ReferenceBookTokenMatch>
Matches for each explicit book token in source order.
final
detectedLanguage → BibleLanguageEnum?
The one detected language, or null for mixed/no-language matches.
no setter
detectedLanguages → Set<BibleLanguageEnum>
Every distinct language selected for explicit book tokens.
no setter
hasAmbiguity → bool
Whether any explicit token matched more than one distinct book.
no setter
hashCode → int
The hash code for this object.
no setteroverride
normalizedInput → String
The Unicode-syntax-normalized, trimmed, whitespace-normalized source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

empty → const ReferenceParseMetadata
Empty metadata used by manually-created ParseSuccess values.