toggleSort method

void toggleSort()

Implementation

void toggleSort() {
  var current = sortSubject.valueOrNull;
  if (current == null) {
    sortSubject.add(true);
  } else if (current) {
    sortSubject.add(false);
  } else {
    sortSubject.add(true);
  }
}