setupDashboard static method

Future<ProfileModel> setupDashboard(
  1. AppModel app,
  2. String uniqueId,
  3. String componentIdentifier,
  4. FeedModel feed,
)

Implementation

static Future<ProfileModel> setupDashboard(
  AppModel app,
  String uniqueId,
  String componentIdentifier,
  FeedModel feed,
) async {
  return await AbstractRepositorySingleton.singleton
      .profileRepository(app.documentID)!
      .add(profileModel(
        app,
        uniqueId,
        componentIdentifier,
        feed,
      ));
}