render method

  1. @override
InlineSpan render(
  1. BuildContext context, {
  2. List<InlineSpan>? children,
})
override

Render the current block

@param children List of children

Implementation

@override
InlineSpan render(BuildContext context, {List<InlineSpan>? children}) {
  return WidgetSpan(
    child: ImageComponent(
      url: data['src'],
      caption: data['description'],
    ),
  );
}