onTapImage property

void Function(String url, String? alt, String? title)? onTapImage
final

Callback invoked when an image is tapped.

Receives the image URL, alt text, and title attribute. Useful for implementing image preview, zoom, or download.

SmoothMarkdown(
  data: markdownText,
  onTapImage: (url, alt, title) {
    showImagePreview(context, url);
  },
)

Implementation

final void Function(String url, String? alt, String? title)? onTapImage;