didPopNext method
override
Called when the top route has been popped off, and the current route shows up.
Implementation
@override
void didPopNext() {
_gender.text = "";
_selectedDate = DateTime.now();
_controllerDate.text =
"${_selectedDate.day}/${_selectedDate.month}/${_selectedDate.year}";
super.didPopNext();
}