'Close Page of Shell Flyout Item when another Flyout Item is displayed

I'm developing a Xamarin Forms mobile app and I'm using Shell navigation whit flyout items, I'm trying to close a page when changing of flyout item because one of this pages is a step by step estimate but when I change to another page and back to the estimate page still in the same state. Any suggestion ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source