navigateTo<T> method

Future<T?> navigateTo<T>({
  1. required String location,
  2. Object? arguments,
  3. List<Destination>? history,
  4. bool useRootDelegate = false,
})

Navigate to the following location.

location to navigate to. Must be unique in the current navigation stack.

arguments to pass at the location.

Implementation

Future<T?> navigateTo<T>({
  required String location,
  Object? arguments,
  List<Destination>? history,
  bool useRootDelegate = false,
}) {
  return DBRouterDelegate.of(this, root: useRootDelegate).navigateTo<T>(
    location: location,
    arguments: arguments,
    history: history,
  );
}