ScoredCandidate class

This class represents the score for a particular element; how likely it is that this is the canonical element.

Implemented types

Constructors

ScoredCandidate(Canonicalization _element, Library library)

Properties

element Canonicalization
@Deprecated('Public getter intended to be private; will be removed as early as ' 'Dartdoc 1.0.0'), read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
library Library
final
reasons List<String>
@Deprecated('Public field intended to be private; will be removed as early as ' 'Dartdoc 1.0.0'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
score double
The score accumulated so far. Higher means it is more likely that this is the intended canonical Library.
read / write

Methods

alterScore(double scoreDelta, String reason) → void
@Deprecated('Public method intended to be private; will be removed as early as ' 'Dartdoc 1.0.0')
compareTo(ScoredCandidate other) int
Compares this object to another Comparable [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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