replace method

Future<void> replace(
  1. Enum page, {
  2. Object? args,
})

Opens page instead of the current one.

Implementation

Future<void> replace(Enum page, {Object? args}) => _navigator.pushReplacement(_route(page, args));