replace method
void
replace(})
Replace current route
Implementation
void replace(
String route, {
Map<String, dynamic>? params,
Map<String, dynamic>? queryParams,
Object? arguments,
}) {
value = value.copyWith(
currentRoute: route,
params: params,
queryParams: queryParams,
arguments: arguments,
// Don't add to history for replace
);
Logger.debug('Replaced route with: $route');
}