getApp method

Future<AppModel?> getApp(
  1. String appId
)

Implementation

Future<AppModel?> getApp(String appId) async {
  var app = await AbstractMainRepositorySingleton.singleton
      .appRepository()!
      .get(appId);
  if (app == null) {
    throw Exception('App with id $appId does not exist');
  }
  return app;
}