removeSortOrder method

bool removeSortOrder(
  1. String orderId
)

Removes a sort order from the collection.

Returns true if the order was found and removed, false otherwise.

Implementation

bool removeSortOrder(String orderId) {
  if (_orders == null) return false;

  if (_orders!.removeOrder(orderId)) {
    _logger.d('Sort order removed: $orderId');
    _applySortingToCurrentState();
    return true;
  }
  return false;
}