openNamed method
Opens path from given location reference with its entire history stack.
Implementation
Future<void> openNamed(String location,
{Object? state, Object? arguments}) async {
var configuration = AdvancedRouteInformation(
location: location, state: state, arguments: arguments);
await setNewRoutePath(configuration);
}