CustomStyledText constructor

CustomStyledText({
  1. Key? key,
  2. bool newLineAsBreaks = true,
  3. required String text,
  4. Map<String, StyledTextTagBase> tags = const {},
  5. TextStyle? style,
  6. 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,
});