goTo function

Future goTo(
  1. dynamic context,
  2. dynamic page
)

Implementation

Future goTo(context, var page) {
  //return Navigator.of(context).push(createRoute(page));
  return Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => page),
  );

}