image method

MarkdownDocument image(
  1. String imagePath, [
  2. String? imageText,
  3. bool showText = false
])

Implementation

MarkdownDocument image(String imagePath,
    [String? imageText, bool showText = false]) {
  imageText = imageText ?? '';
  _document = _document + '![${imageText}]($imagePrefix/${imagePath})';
  if (showText) {
    _document = _document + ' ${imageText}';
  }
  _document = _document + '\n';

  return this;
}