getPage static method
Implementation
static Future<PageModel?> getPage(String appId, String? pageId,
{String? alternativePageId}) async {
PageModel? page;
if (pageId != null) {
page = await pageRepository(appId: appId)!.get(pageId);
}
if (page == null) {
if (alternativePageId != null) {
return await pageRepository(appId: appId)!.get(alternativePageId);
}
} else {
return page;
}
return null;
}