QuerySort class

Represents a sort order for query results

Constructors

QuerySort({required String field, bool descending = false})
const

Properties

descending bool
Whether to sort in descending order (default: false = ascending)
final
field String
The field name to sort by
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compare(Map<String, dynamic> a, Map<String, dynamic> b) int
Compares two data maps based on this sort order
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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