hide method

void hide({
  1. int? index,
  2. DropDownHeaderStatus? status,
})

Used to hide DropDownView. status: The status of header after the user selects the item

Implementation

void hide({int? index, DropDownHeaderStatus? status}) {
  if (status != null) {
    headerStatus[index ?? headerIndex] = status;
  }
  isExpand = false;
  notifyListeners();
}