toggle method

void toggle()

Implementation

void toggle() {
  Debug().info(
      "Prefer Compact: $_preferCompact -> ${!_preferCompact}");
  _preferCompact = !_preferCompact;
  notifyListeners();
}