WeightedKey<T> class

Represents a weighted getter of an item

Constructors

WeightedKey({@required String name, @required String getter(T obj), @required double weight})
Instantiates it

Properties

getter String Function(T obj)
Getter to a specifc string inside item
final
hashCode int
The hash code for this object.
read-onlyinherited
name String
Name of this getter
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
weight double
Weight of this getter. When passing a list of WeightedKey to FuzzyOptions, the weight can be any positive number; FuzzyOptions normalizes it on construction.
final

Methods

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

Operators

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