CustomStyledText constructor
CustomStyledText({
- Key? key,
- bool newLineAsBreaks = true,
- required String text,
- Map<
String, StyledTextTagBase> tags = const {}, - TextStyle? style,
- required StyledTextWidgetBuilderCallback builder,
Create a CustomStyledText with your own builder function.
This way you can manage the resulting TextSpan by yourself.
Implementation
CustomStyledText({
super.key,
this.newLineAsBreaks = true,
required this.text,
this.tags = const {},
this.style,
required this.builder,
});