ImageBuilder typedef

ImageBuilder = Widget Function(BuildContext context, String imageUrl, double? width, double? height)

A builder function for the image.

width and height come from the image alt text when parsed as WxH (for example ![100x200](url)); otherwise they are null.

Implementation

typedef ImageBuilder =
    Widget Function(
      BuildContext context,
      String imageUrl,
      double? width,
      double? height,
    );