navigatePushReplacement<T> method
Navigate to another widget and replace remove the current one
Implementation
Future<T?> navigatePushReplacement<T>({required BuildContext context,required Route<T> route}) => Navigator.pushReplacement(context, route);