navigate method
void
navigate(
Pushes route onto the stack, optionally passing args.
Implementation
void navigate(BuildContext context, String route, {Object? args}) {
Navigator.pushNamed(context, route, arguments: args);
}