KeyIndex class final

Orders children by key.

Inheritance

Constructors

KeyIndex()
Use keyIndex.
const

Properties

comparator → Comparator<NamedNode>
compare as a Comparator, for sorted maps.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
maxPost → NamedNode
The post after every child.
no setteroverride
minPost → NamedNode
The post before every child.
no setteroverride
queryDefinition → String
The wire name of the index: .priority, .key, .value or the child path (a/b).
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

compare(NamedNode a, NamedNode b) → int
Compares two children; ties are broken by key.
override
indexedValueChanged(Node oldNode, Node newNode) → bool
Whether the indexed value differs between oldNode and newNode.
override
isDefinedOn(Node node) → bool
Whether node has a value under this index (for example a priority).
override
makePost(Node indexValue, ChildKey name) → NamedNode
The post for a query bound: indexValue under name.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
The queryDefinition, which is also the key of the index in an IndexMap (JS toString).
override

Operators

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