homePageForAppId method

PageModel? homePageForAppId(
  1. String appId
)

Implementation

PageModel? homePageForAppId(String appId) {
  for (var app in apps) {
    if (app.app.documentID == appId) {
      return app.homePage;
    }
  }
  throw Exception('app not found when trying to find homepage');
}