build method

  1. @override
InlineSpan build()
override

Implementation

@override
InlineSpan build() {
  final divider = headingConfig.divider;
  if (divider == null) return childrenSpan;
  return WidgetSpan(
    child: Padding(
      padding: headingConfig.padding,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          ProxyRichText(
            childrenSpan,
            richTextBuilder: visitor.richTextBuilder,
          ),
          _Divider(divider: divider.copy(color: parentStyle?.color)),
        ],
      ),
    ),
  );
}