InlineLatexBuildDetails class final
What InlineLatexBuilder is told about one inline formula.
Like LinkBuildDetails, this is the builder's only parameter: new information arrives as a new field, never as a new argument.
- Inheritance
-
- Object
- InlineBuildDetails
- InlineLatexBuildDetails
Constructors
- InlineLatexBuildDetails({required BuildContext context, required GptMarkdownConfig config, required TextStyle style, required String tex, required String source, required Widget buildDefault(), required InlineSpan placeholder(Widget child), VoidCallback? onTap})
-
Creates inline formula details.
const
Properties
- config → GptMarkdownConfig
-
The configuration in force at this point in the document.
finalinherited
- context → BuildContext
-
The element this construct is being built in.
finalinherited
- 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 in effect for this construct, fully resolved.
finalinherited
- tex → String
-
The formula to render, after GptMarkdownConfig.latexWorkaround.
final
Methods
-
asWidgetSpan(
Widget child) → InlineSpan -
childplaced in the line exactly the way the default formula is: aligned on the text baseline, and scaled with the paragraph around it. -
defaultSpan(
) → InlineSpan - 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.
-
defaultWidget(
) → Widget - The default formula as a widget, not yet placed in the line — to wrap in something of your own and hand to asWidgetSpan.
-
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