RichText.mathematicalExpression constructor
const
RichText.mathematicalExpression({
- @JsonKey.new(name: 'type') @Default.new(RichTextType.mathematicalExpression) RichTextType type,
- @JsonKey.new(name: 'expression') required String expression,
A mathematical expression.
Implementation
const factory RichText.mathematicalExpression({
/// Type of the rich text, always "mathematical_expression"
@JsonKey(name: 'type')
@Default(RichTextType.mathematicalExpression)
RichTextType type,
/// The expression in LaTeX format
@JsonKey(name: 'expression') required String expression,
}) = RichTextMathematicalExpression;