BlockLatexBuildDetails class final

What BlockLatexBuilder is told about one block formula.

Like LinkBuildDetails, this is the builder's only parameter: new information arrives as a new field, never as a new argument.

Annotations

Constructors

BlockLatexBuildDetails({required BuildContext context, required GptMarkdownConfig config, required TextStyle style, required String tex, required String source, required Widget buildDefault(), VoidCallback? onTap})
Creates block formula details.
const

Properties

config → GptMarkdownConfig
The configuration in force at this point in the document.
final
context → BuildContext
The element this formula is being built in.
final
hashCode → int
The hash code for this object.
no setterinherited
onTap → VoidCallback?
Invokes GptMarkdownConfig.onLatexTap for this formula as a whole, or null when no handler is set.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
The formula as written in the document, before any workaround.
final
style → TextStyle
The text style the formula would be drawn with, fully resolved: LatexStyle.textStyle applied over the surrounding style.
final
tex → String
The formula to render, after GptMarkdownConfig.latexWorkaround.
final

Methods

defaultWidget() → Widget
Exactly what the formula renders as when no builder is given, taps included. Returning it is a no-op, so it is the place to start.
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