build method
Implementation
@override
InlineSpan build() {
final url = attributes['href'] ?? '';
return TextSpan(children: [
for (final child in children)
_toLinkInlineSpan(
child.build(),
() => _onLinkTap(linkConfig, url),
),
if (children.isNotEmpty)
// FIXME: this is a workaround, maybe need fixed by flutter framework.
// add a space to avoid the space area of line end can be tapped.
TextSpan(text: ' '),
]);
}