isAmbiguous property

bool get isAmbiguous

Whether the token could have selected a different book.

Implementation

bool get isAmbiguous =>
    alternatives.any((candidate) => candidate.book != selected.book);