T expectRoutes(List<String> routes, {String? reason}) { expectUIRoutes(routes, reason: reason); return this as T; }