replaceHistoryState method

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

This replaces the current history state of VRouter with given one

Implementation

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