ActivitiesSort class

Represents a sorting operation for activities.

This class extends the base Sort functionality and provides specific sorting capabilities for activity data with default configurations.

Inheritance

Constructors

ActivitiesSort.asc(ActivitiesSortField field, {NullOrdering nullOrdering = NullOrdering.nullsLast})
Creates a new activities sort with ascending direction.
const
ActivitiesSort.desc(ActivitiesSortField field, {NullOrdering nullOrdering = NullOrdering.nullsFirst})
Creates a new activities sort with descending direction.
const

Properties

direction SortDirection
The direction of the sort operation (ascending or descending).
finalinherited
field SortField<ActivityData>
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(ActivityData? a, ActivityData? 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<ActivitiesSort>
Default sorting configuration for activities.
final