toggle method

void toggle()

Implementation

void toggle() {
  expanded.value = !expanded.value;
}