push method Null safety

void push(
  1. String route
)

Implementation

void push(String route) => setState(() {
      currentRoute = route;
    });