I'm confused with arrow syntax in this Navigator implementation:
Navigator.push(
MaterialPageRoute(
context,
builder: (context) => aWidgetConstructor()
)
)
From what I guess, the 4th line is similar to
Widget build(Buildcontext context){
return aWidgetConstructor(
...
)
}
So how can one explain this syntax work, and why function expression can't be named?
Thanks.