buildErrorImage method

Widget buildErrorImage(
  1. String url,
  2. String alt,
  3. Object? error
)

Implementation

Widget buildErrorImage(String url, String alt, Object? error) {
  return ProxyRichText(
    TextSpan(children: [
      WidgetSpan(
          child: Icon(Icons.broken_image,
              color: Colors.redAccent,
              size: (parentStyle?.fontSize ??
                      config.p.textStyle.fontSize ??
                      16) *
                  (parentStyle?.height ?? config.p.textStyle.height ?? 1.2))),
      TextSpan(text: alt, style: parentStyle ?? config.p.textStyle),
    ]),
    richTextBuilder: visitor.richTextBuilder,
  );
}