Ordering class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 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