replace method
Replace the entire stack with a single dialog.
Implementation
void replace(Widget dialog) {
setState(() {
_stack
..clear()
..add(dialog);
});
}
Replace the entire stack with a single dialog.
void replace(Widget dialog) {
setState(() {
_stack
..clear()
..add(dialog);
});
}