S2GroupSort class

Comparator function to sort the choice group enhanced with predefined function

Mixed in types
Annotations

Constructors

S2GroupSort(S2SortComparator<S2Group> compare)
Default constructor
S2GroupSort.byCountInAsc()
Function to sort the group keys by items count in ascending order
factory
S2GroupSort.byCountInDesc()
Function to sort the group keys by items count in descending order
factory
S2GroupSort.byNameInAsc()
Function to sort the group keys alphabetically by name in ascending order
factory
S2GroupSort.byNameInDesc()
Function to sort the group keys alphabetically by name in descending order
factory

Properties

compare S2SortComparator<S2Group>
Comparator function to sort the group
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

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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