navigatePage static method

Future navigatePage(
  1. BuildContext context,
  2. Widget widget
)

Implementation

static Future navigatePage(BuildContext context, Widget widget) async {
  log('---||=======> ${widget.runtimeType}', name: 'NAVIGATE');
  return Navigator.of(context).push(MaterialPageRoute(
    builder: (context) => widget,
  ));
}