DictionaryMatch class

A match for a dictionary word.

Inheritance
Implementers

Constructors

DictionaryMatch.new({required String password, required int start, required int end, required String matchedWord, required int rank, required Dictionary dictionary, int? levenshteinDistance, String? levenshteinDistanceEntry})
Creates a match.

Properties

dictionary Dictionary
The dictionary containing the matchedWord.
final
end int
The index in the password after the last character of the token.
finalinherited
estimatedGuesses double
Should return the estimated number of guesses for the token.
no setteroverride
extraVariations double
Optional guess multiplier.
no setter
guesses double
The number of guesses for the token.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
length int
The length of the token.
no setterinherited
levenshteinDistance int?
The Levenshtein distance between the matchedWord and the levenshteinDistanceEntry.
final
levenshteinDistanceEntry String?
The word from the dictionary used to calculate the levenshteinDistance.
final
matchedWord String
The matched word.
final
minGuesses double
The minimum number of guesses for the token.
no setterinherited
minGuessesForMultiChar double
The minimum number of guesses for a match longer than 1.
no setterinherited
minGuessesForSingleChar double
The minimum number of guesses for a match of length 1.
no setterinherited
password String
The password that is being matched.
finalinherited
rank int
The frequency rank of the matchedWord.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
The index in the password where the token starts.
finalinherited
token String
The matched part of the password.
no setterinherited
uppercaseVariations double
Guess multiplier for capital letters.
no setter

Methods

feedback({required bool isSoleMatch}) Feedback?
Should return the warning and suggestions regarding this match.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toL33tMatch({required String password, required int start, required int end, required List<PasswordChange> changes, required String changesDisplay}) L33tMatch
Converts the match to a L33tMatch.
toReverseMatch() ReverseMatch
Converts the match to a ReverseMatch.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited