In the methods Navigator.goBackTo and Navigator.goBackBefore there are checks on the screen argument using structural equality (.equals()). The rest of the implementation uses referential equality.
Is it intentional to only allow for equal references in these methods? I have paths that are structurally equal but different references, so they won't work with these functions.