Ordering class

Defines an ordering for a key/value pairs.

Constructors

Ordering.byKey()
Creates an ordering by key.
const
factory
Ordering.byMappedValue(Comparable mapper(dynamic v))
Creates an ordering by mapped values.
factory
Ordering.byValue()
Creates an ordering by value.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

mapKeyValue<K, V>(Comparable key, dynamic value) Pair
Maps a key and value to a pair with the desired natural order.
mapValue(dynamic value) Comparable
Maps a value to a Comparable defining the desired order.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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