setRulesPanelExpanded method

void setRulesPanelExpanded(
  1. bool expanded
)

Sets rules panel visibility. Opening syncs pendingRuleNames from the current selection.

Implementation

void setRulesPanelExpanded(bool expanded) {
  _isRulesPanelExpanded = expanded;
  if (expanded) {
    _pendingRuleNames
      ..clear()
      ..addAll(
        [..._selectedRuleNames]..removeWhere((e) => e == "wheelchair"),
      );
  }
  _notify();
}