The updateCurrentEntry method is declared in Navigation, but it is reasonable to declare it in a NavigationHistoryEntry instance as a setState method for better structuring and saving the context of instances, taking into account that when the state changes, the object remains the same with an unchanged id.
The current api is misleading, leaving you thinking that this will result in a new NavigationHistoryEntry instance.
The
updateCurrentEntry
method is declared inNavigation
, but it is reasonable to declare it in aNavigationHistoryEntry
instance as asetState
method for better structuring and saving the context of instances, taking into account that when the state changes, the object remains the same with an unchangedid
.The current api is misleading, leaving you thinking that this will result in a new
NavigationHistoryEntry
instance.