pageRouteBuilderWithAppId function

PageRouteBuilder pageRouteBuilderWithAppId(
  1. AccessState state,
  2. String appId, {
  3. String? pageId,
  4. Map<String, dynamic>? parameters,
  5. required Widget page,
})

Implementation

PageRouteBuilder pageRouteBuilderWithAppId(AccessState state, String appId,
    {String? pageId, Map<String, dynamic>? parameters, required Widget page}) {
  var name = getName(appId, pageId);
  if (state is AccessDetermined) {
    var app = state.getApp(appId);
    if (app != null) {
      return pageRoute(app, name, parameters, page);
    }
  }
  return FadeRoute(
      name: name, parameters: parameters, page: page, milliseconds: 1000);
}