replaceHistoryState method

  1. @Deprecated('Use to(context.vRouter.url!, isReplacement: true, historyState: newHistoryState) instead')
void replaceHistoryState(
  1. Map<String, String> newHistoryState
)

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,
    );