push method
Implementation
void push(Widget? widget, BuildContext context) {
WidgetsBinding.instance.addPostFrameCallback((_) {
Navigator.push(
context,
MaterialPageRoute<Widget>(
builder: (BuildContext context) => widget!));
});
}