expectUIRoute function
Expects route at UINavigator.currentRoute.
Implementation
void expectUIRoute(String route, {String? reason, skip}) => expect(
UINavigator.currentRoute,
equals(route),
reason: reason ?? 'Expected route: `$route`',
skip: skip,
);