newScreen static method

dynamic newScreen({
  1. dynamic context,
  2. dynamic screen,
})

Implementation

static newScreen({context, screen}) {
  return Navigator.push(
      context, MaterialPageRoute(builder: (context) => screen));
}