Math.tex constructor

const Math.tex(
  1. String expression, {
  2. Key? key,
  3. MathStyle mathStyle = MathStyle.display,
  4. TextStyle? textStyle,
  5. OnErrorFallback onErrorFallback = defaultOnErrorFallback,
  6. TexParserSettings settings = const TexParserSettings(),
  7. double? textScaleFactor,
  8. MathOptions? options,
})

Renders expression.

Implementation

const Math.tex(
  this.expression, {
  super.key,
  this.mathStyle = MathStyle.display,
  this.textStyle,
  this.onErrorFallback = defaultOnErrorFallback,
  this.settings = const TexParserSettings(),
  this.textScaleFactor,
  this.options,
});