installPhotoAndText method

Future<void> installPhotoAndText(
  1. String title,
  2. String description,
  3. String contents,
  4. DecorationComponentPosition imagePosition,
  5. String imageAssetLocation, {
  6. SimpleTextAlign? align,
})

Implementation

Future<void> installPhotoAndText(
    String title,
    String description,
    String contents,
    DecorationComponentPosition imagePosition,
    String imageAssetLocation,
    {SimpleTextAlign? align}) async {
  var simpleTextModel = await createSimpleTextModel(
      installApp!.theApp.documentID, title, contents,
      align: align);
  var componentId = simpleTextModel.documentID;
  var componentName = AbstractSimpleTextComponent.componentName;
  return super.installPhoto(componentId, componentName, title, description,
      imagePosition, imageAssetLocation);
}