TextViewer.textValue constructor
TextViewer.textValue(})
Implementation
factory TextViewer.textValue(
String textContent, {
TextStyle textStyle = const TextStyle(),
TextStyle? highLightTextStyle,
TextStyle? focusTextStyle,
Color highLightColor = Colors.yellow,
Color focusColor = Colors.amber,
bool ignoreCase = true,
OnErrorCallback? onErrorCallback,
}) {
return TextViewer._(
textContent: textContent,
textStyle: textStyle,
highLightTextStyle: highLightTextStyle ??
textStyle.copyWith(background: Paint()..color = highLightColor),
focusTextStyle: focusTextStyle ??
textStyle.copyWith(background: Paint()..color = focusColor),
highLightColor: highLightColor,
focusColor: focusColor,
ignoreCase: ignoreCase,
onErrorCallback: onErrorCallback);
}