run method

Future<PageModel> run({
  1. FeedModel? feed,
  2. String? feedIdentifier,
  3. required String componentIdentifier,
})

Implementation

Future<PageModel> run({
  FeedModel? feed,
  String? feedIdentifier,
  required String componentIdentifier,
}) async {
  if (feedIdentifier == null) {
    throw Exception('If feed is null, feedIdentifier needs to be supplied');
  }
  var newFeed = await FeedMenuPageBuilder.assertFeedModel(
      feed, feedIdentifier, app.documentID, uniqueId);
  await setupDashboard(app, newFeed, uniqueId, componentIdentifier);
  return await doIt(
      componentName: AbstractFeedFrontComponent.componentName,
      componentIdentifier: componentIdentifier,
      title: "Find Friends",
      description: "Find Friends");
}