replaceHistoryState method
- @Deprecated('Use to(context.vRouter.url!, isReplacement: true, historyState: newHistoryState) instead')
This replaces the current history state of VRouter with given one
Implementation
@Deprecated(
'Use to(context.vRouter.url!, isReplacement: true, historyState: newHistoryState) instead')
void replaceHistoryState(Map<String, String> newHistoryState) => to(
(url != null) ? Uri.parse(url!).path : '/',
historyState: newHistoryState,
isReplacement: true,
);