push function

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

Implementation

Future<dynamic> push(BuildContext context, Widget widget) {
  return Navigator.of(context).push(MaterialPageRoute(builder: (context){
    return widget;
  }));
}