updateVideo method

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

Updates properties on an existing video block at blockIndex.

Implementation

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