updateImage method

void updateImage(
  1. int blockIndex, {
  2. String? src,
  3. String? alt,
  4. double? width,
  5. double? height,
  6. String? caption,
  7. SmartTextAlign? alignment,
})

Updates properties on an existing image block at blockIndex.

Implementation

void updateImage(
  int blockIndex, {
  String? src,
  String? alt,
  double? width,
  double? height,
  String? caption,
  SmartTextAlign? alignment,
}) {
  _documentController.updateImage(
    blockIndex,
    src: src,
    alt: alt,
    width: width,
    height: height,
    caption: caption,
    alignment: alignment,
  );
  _editorWidgetState?.rebuild();
}