markForRemove method Null safety
Marks the route to be removed without transition.
During TransitionDelegate.resolve, this can be called on an exiting route to indicate that the route should be removed from the Navigator without completing and without an animated transition.
Implementation
void markForRemove();