wrap method
Method that should be overwritten by the implementing tag.
The spans
are all styled children of this tag.
A list of InlineSpan
should be returned. For a quote tag this would be one single element.
Implementation
@override
List<InlineSpan> wrap(FlutterRenderer renderer, bbob.Element element, List<InlineSpan> spans) {
return [
WidgetSpan(
child: SizedBox(
width: double.infinity,
child: RichText(
text: TextSpan(children: spans), textAlign: TextAlign.right)))
];
}