PhantomNode class final
\phantom, \hphantom, \vphantom: invisible content that keeps some
of its size.
Constructors
- PhantomNode(SourceSpan span, MathNode body, {bool keepWidth = true, bool keepHeight = true})
-
Creates a phantom.
const
Properties
- body → MathNode
-
The invisible content.
final
-
children
→ Iterable<
MathNode> -
The non-null children.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepHeight → bool
-
Keeps the content's height and depth (false for
\hphantom).final - keepWidth → bool
-
Keeps the content's width (false for
\vphantom).final - kind → String
-
Short name used by dump.
no setteroverride
-
props
→ Map<
String, Object?> -
Scalar attributes, for dump and tooling.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slots
→ List<
(String, MathNode?)> -
Named child slots, in source order. Absent children are null.
no setteroverride
- span → SourceSpan
-
Where in the normalized source this node came from.
finalinherited
Methods
-
dump(
) → String -
A compact, deterministic s-expression of the subtree, for tests and
debugging. Spans are omitted.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited