toggle method
Implementation
void toggle({BuildContext? context}) {
if (isOpen) {
close(context ?? this.context);
} else {
open(context ?? this.context);
}
}
void toggle({BuildContext? context}) {
if (isOpen) {
close(context ?? this.context);
} else {
open(context ?? this.context);
}
}