navigateTo<T extends Object?> abstract method Null safety

Future<T?> navigateTo<T extends Object?>(
  1. {required String location,
  2. Object? arguments}
)

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 extends Object?>({
  required final String location,
  final Object? arguments,
});