go function

dynamic go(
  1. dynamic context,
  2. dynamic page
)

Implementation

go(context, page) {
  Navigator.push(context, MaterialPageRoute(builder: (context) => page));
}