updateOpenState method

void updateOpenState({
  1. required bool state,
})

Implementation

void updateOpenState({required bool state}) {
  if (state != isOpen) {
    isOpen = state;
    notifyListeners();
  }
}