openNamed method

Future<void> openNamed(
  1. String location, {
  2. Object? state,
  3. Object? arguments,
})

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);
}