installPhoto method

Future<void> installPhoto(
  1. String? componentId,
  2. String componentName,
  3. String title,
  4. String description,
  5. DecorationComponentPosition imagePosition,
  6. String imageAssetLocation,
)

Implementation

Future<void> installPhoto(
  String? componentId,
  String componentName,
  String title,
  String description,
  DecorationComponentPosition imagePosition,
  String imageAssetLocation,
) async {
  var memberMediumModel = await installImage(imageAssetLocation);
  var decoration = await createSimpleImage(memberMediumModel);
  var decoratingComponentId = decoration.documentID;
  var decoratingComponentName = AbstractSimpleImageComponent.componentName;
  return super.installDecoratedContent(
      title,
      description,
      componentId,
      componentName,
      decoratingComponentId,
      decoratingComponentName,
      imagePosition);
}