FollowsSort class
Represents a sorting operation for follows.
- Inheritance
-
- Object
- Sort<
FollowData> - FollowsSort
Constructors
- FollowsSort.asc(FollowsSortField field, {NullOrdering nullOrdering = NullOrdering.nullsLast})
-
const
- FollowsSort.desc(FollowsSortField field, {NullOrdering nullOrdering = NullOrdering.nullsFirst})
-
const
Properties
- direction → SortDirection
-
The direction of the sort operation (ascending or descending).
finalinherited
-
field
→ SortField<
FollowData> -
The field to sort by.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nullOrdering → NullOrdering
-
How null values should be ordered in the sort operation.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compare(
FollowData? a, FollowData? b) → int -
Compares two objects using this sort specification.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this sort specification to a JSON representation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
defaultSort
→ List<
FollowsSort> -
The default sorting criteria for follows queries.
Sorts by creation date in descending order (newest first).
final