toggle method
Used to toggle DropDownView.
Implementation
void toggle(int index, {Offset? offset, DropDownHeaderStatus? status}) {
if (isExpand && headerIndex == index) {
hide(index: index, status: status);
} else {
show(index, offset: offset);
}
}