I would like to pass data to another screen. According to the docs when using named routes I need to use Arguments and use:
Navigator.pushNamed(
context,
NextScreen.route,
arguments: NextScreenArgs("pew"),
);
However the same(?) could be accomplished by just using:
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => NextScreen("pew"),
),
);
Is there any difference or advantage using pushNamed
?