toggleSection method

void toggleSection(
  1. K sectionKey, {
  2. bool animate = true,
})

Implementation

void toggleSection(K sectionKey, {bool animate = true}) {
  _checkNotDisposed();
  _requireSection(sectionKey, "toggleSection");
  _tree.toggle(key: SectionKey<K>(sectionKey), animate: animate);
}