You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alvaro Vasconcelos edited this page Mar 3, 2020
·
1 revision
Router generic types
Você pode precisar navegar para uma pagina especifica e solicitar um valor de retorno no pop(), Você pode tipar o objeto Router com o valor desse retorno;
@overrideList<Router> get routers => [
//type router with return typeRouter<String>('/event', child: (_, args) =>EventPage()),
]
Agora você pode "tipar" o pushNamed e o pop
String name =awaitModular.to.pushNamed<String>();
//andModular.to.pop('Jacob Moura');