SimilarityIndex class

Object model for a suggestion as alternate for a term. Used in spelling correction and term expansion.

  • term is the suggested term.
  • similarity is the similarity level of the suggestion on a scale of 0.0 to 1.0, where 1.0 indicates the terms are identical.

Constructors

SimilarityIndex(String term, double similarity)
Instantiate a const SimilarityIndex with the term and similarity parameters.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
similarity double
The similarity level of the suggestion on a scale of 0.0 to 1.0, where 1.0 indicates the terms are identical.
final
term String
The suggested term.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Returns true if runtimeType, term and similarity are equal.
override