navigateTo static method

Future navigateTo(
  1. BuildContext context,
  2. Widget page
)

Implementation

static Future<dynamic> navigateTo(BuildContext context, Widget page) async {
  return await Navigator.push(
      context, new MaterialPageRoute(builder: (ctx) => page));
}