MembersSort class
Represents a sorting operation for feed members.
This class extends the base Sort functionality and provides specific sorting capabilities for feed member data with default configurations.
- Inheritance
-
- Object
- Sort<
FeedMemberData> - MembersSort
Constructors
- MembersSort.asc(MembersSortField field, {NullOrdering nullOrdering = NullOrdering.nullsLast})
-
Creates a new members sort with ascending direction.
const
- MembersSort.desc(MembersSortField field, {NullOrdering nullOrdering = NullOrdering.nullsFirst})
-
Creates a new members sort with descending direction.
const
Properties
- direction → SortDirection
-
The direction of the sort operation (ascending or descending).
finalinherited
-
field
→ SortField<
FeedMemberData> -
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(
FeedMemberData? a, FeedMemberData? 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<
MembersSort> -
Default sorting configuration for feed members.
final