startScreen static method

void startScreen(
  1. BuildContext context,
  2. Widget widget
)

Implementation

static void startScreen(BuildContext context,Widget widget){
  Navigator.pushReplacement(context,
      MaterialPageRoute(builder: (context) {
        return  widget;
      }));
}