LatexConfig class

LaTeX rendering configuration (external user settings)

Available extensions

Constructors

LatexConfig({double fontSize = 20.0, LatexTheme theme = const _AdaptiveLatexTheme(light: LatexTheme.defaultLightColors, dark: LatexTheme.defaultDarkColors), LineBreakingConfig lineBreaking = const LineBreakingConfig(), HighlightConfig highlight = const HighlightConfig(), bool accessibilityEnabled = false, void onNodeClick(int startOffset, int endOffset, String latex)?, void onHyperlinkClick(String url)?, bool enableLayoutCache = false})
const

Properties

accessibilityEnabled bool
final
enableLayoutCache bool
Whether to enable NodeLayout caching
final
fontSize double
final
hashCode int
The hash code for this object.
no setterinherited
highlight HighlightConfig
final
lineBreaking LineBreakingConfig
final
onHyperlinkClick → void Function(String url)?
Hyperlink click callback: Triggered when clicking \href or \url nodes, returns the URL string directly. If null, hyperlink-specific clicking is not enabled
final
onNodeClick → void Function(int startOffset, int endOffset, String latex)?
Interactive formula: Callback when clicking a sub-expression. Passes the LaTeX source range (start and end offsets) of the clicked node. If null, click interactivity is disabled
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme LatexTheme
final

Methods

copyWith({double? fontSize, LatexTheme? theme, LineBreakingConfig? lineBreaking, HighlightConfig? highlight, bool? accessibilityEnabled, void onNodeClick(int startOffset, int endOffset, String latex)?, void onHyperlinkClick(String url)?, bool? enableLayoutCache}) LatexConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveThemeColors(bool isDark) LatexThemeColors

Available on LatexConfig, provided by the LatexConfigResolver extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited