Math constructor

const Math({
  1. Key? key,
  2. SyntaxTree? ast,
  3. MathStyle mathStyle = MathStyle.display,
  4. double? logicalPpi,
  5. OnErrorFallback onErrorFallback = defaultOnErrorFallback,
  6. MathOptions? options,
  7. ParseException? parseError,
  8. double? textScaleFactor,
  9. TextStyle? textStyle,
})

Math widget default constructor

Requires either a parsed ast or a parseError.

See Math for its member documentation

Implementation

const Math({
  Key? key,
  this.ast,
  this.mathStyle = MathStyle.display,
  this.logicalPpi,
  this.onErrorFallback = defaultOnErrorFallback,
  this.options,
  this.parseError,
  this.textScaleFactor,
  this.textStyle,
})  : assert(ast != null || parseError != null),
      super(key: key);