addSortOrder method
Adds a new sort order to the collection.
Example:
cubit.addSortOrder(SortOrder.byField(
id: 'rating',
label: 'Rating',
fieldSelector: (p) => p.rating,
direction: SortDirection.descending,
));
Implementation
void addSortOrder(SortOrder<T> order) {
_orders ??= SortOrderCollection<T>(orders: []);
_orders!.addOrder(order);
_logger.d('Sort order added: ${order.id}');
}