navigateTo<T> method Null safety

Future<T?> navigateTo<T>(
  1. {required String location,
  2. Object? arguments,
  3. 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.


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