toggleSection method

void toggleSection(
  1. String layer,
  2. int? section
)

Implementation

void toggleSection(String layer, int? section) => _emit(
  state.copyWith(
    openSections: _toggled(state.openSections, (layer, section)),
  ),
);