to static method
dynamic
to(
- BuildContext context,
- String routeName, {
- dynamic arguments,
- dynamic result(
- Result result
Navigate to another screens
Implementation
static to(BuildContext context, String routeName,
{dynamic arguments, Function(Result result)? result}) {
Navigator.pushNamed(context, routeName, arguments: arguments).then((res) {
if (res != null) {
result!(res as Result);
}
});
}