TagExtension.inline constructor
TagExtension.inline({
- required Set<
String> tagsToExtend, - InlineSpan? child,
- InlineSpan builder()?,
TagExtension.inline allows you to extend the functionality of flutter_html by defining a mapping from a custom or existing tag to an InlineSpan.
Implementation
TagExtension.inline({
required this.tagsToExtend,
InlineSpan? child,
InlineSpan Function(ExtensionContext)? builder,
}) : assert((child != null) || (builder != null),
"Either child or builder needs to be provided to TagExtension.inline") {
if (child != null) {
this.builder = (_) => child;
} else {
this.builder = builder!;
}
}