BadKatex constructor

const BadKatex({
  1. Key? key,
  2. Iterable<InlineSpan>? leading,
  3. required String raw,
  4. TextStyle? style,
  5. TextStyle? formulaStyle,
  6. int? maxLines,
  7. TextOverflow? overflow,
})

NOTE: if overflow is not specified, its default value depends on maxLines:

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);