getPublicMediumModel method

PublicMediumModel? getPublicMediumModel(
  1. AppModel app,
  2. String publicMediumModelType
)

Implementation

PublicMediumModel? getPublicMediumModel(
    AppModel app, String publicMediumModelType) {
  for (var wizard
      in NewAppWizardRegistry.registry().registeredNewAppWizardInfos) {
    var newAppWizardName = wizard.newAppWizardName;
    var parameters = newAppWizardParameters[newAppWizardName];
    if (parameters != null) {
      var image = wizard.getPublicMediumModel(
        uniqueId,
        parameters,
        publicMediumModelType,
      );
      if (image != null) return image;
    }
  }
  return null;
}