expectUIRoute function

void expectUIRoute(
  1. String route, {
  2. String? reason,
  3. dynamic skip,
})

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);