BadKatex constructor
const
BadKatex({
- Key? key,
- Iterable<
InlineSpan> ? leading, - required String raw,
- TextStyle? style,
- TextStyle? formulaStyle,
- int? maxLines,
- TextOverflow? overflow,
NOTE: if overflow
is not specified, its default value depends on maxLines
:
- if
maxLines
is null,overflow
is null - if
maxLines
is not null,overflow
is TextOverflow.ellipsis
Implementation
const BadKatex({
super.key,
this.leading,
required this.raw,
this.style,
this.formulaStyle,
this.maxLines,
TextOverflow? overflow,
}) : assert(leading == null || leading.length > 0, 'Think twice!'),
assert(maxLines == null || maxLines > 0, 'Think twice!'),
overflow =
overflow ?? (maxLines == null ? null : TextOverflow.ellipsis);