toggle method

void toggle({
  1. bool animate = true,
})

Toggles expansion.

Implementation

void toggle({bool animate = true}) {
  controller.toggleSection(key, animate: animate);
}