pop method
Removes the current route from the navigation stack.
If result is provided, it will be the return value of the
Future that was returned when the route was pushed.
Returns true if the pop was successful, false otherwise.
Implementation
@override
bool pop({Object? result}) {
if (state.canPop) {
add(NavigationPopEvent(result: result));
return true;
}
return false;
}