MathBlock class final

A display math block: $$ or \[ alone on a line, up to the matching $$ or \], or a whole line such as $$E=mc^2$$.

A block that has not closed by the next blank line (display math cannot contain one) or by the end of the input was not math: its lines are read as ordinary text instead.

$$
\int_0^1 x^2\,dx = \tfrac13
$$

While isOpen, tex is probably incomplete, so renderers should show the source rather than try to typeset it.

Inheritance

Constructors

MathBlock({required int id, required bool isOpen, required String tex})
Creates a math block.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → int
An identifier that is stable across snapshots and unique among siblings.
finalinherited
isOpen → bool
Whether this block may still change as more input arrives.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tex → String
The TeX source, without the delimiters.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override