pushPage function

void pushPage(
  1. BuildContext context,
  2. Widget page
)

Implementation

void pushPage(BuildContext context, Widget page) =>
    Navigator.push(context, MaterialPageRoute(builder: (context) => page));