replacePath method

Future<void> replacePath(
  1. P path, {
  2. PageStackMatchMode mode = PageStackMatchMode.keyOrNullPathNoGap,
})

Replaces the stack of pages with the full default stack of path (declarative navigation).

Implementation

Future<void> replacePath(
  P path, {
  PageStackMatchMode mode = PageStackMatchMode.keyOrNullPathNoGap,
}) async {
  setConfiguration(
    path.defaultStackConfiguration,
    setter: _getConfigurationSetter(mode),
  );
}