toggle method

void toggle()

Implementation

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