go<T extends Object?> method
Navigate to a new route
. The state
is passed as the route arguments.
Implementation
Future<T?> go<T extends Object?>(
String route, {
Object? state,
}) {
return _navigatorKey.currentState!.pushNamed<T?>(route, arguments: state);
}