LatexBuilder typedef
- @Deprecated('Use InlineLatexBuilder via GptMarkdown.inlineLatexBuilder for inline maths ' 'and BlockLatexBuilder via GptMarkdown.blockLatexBuilder for block maths. ' 'One Widget-returning builder serves both, so an inline formula has to be ' 'wrapped in a WidgetSpan by the package, and its four positional parameters ' 'leave nowhere to pass the source as written or a tap handler without ' 'breaking every caller. Will be removed in 2.0.0.')
A builder function for the LaTeX.
Implementation
@Deprecated(
'Use InlineLatexBuilder via GptMarkdown.inlineLatexBuilder for inline maths '
'and BlockLatexBuilder via GptMarkdown.blockLatexBuilder for block maths. '
'One Widget-returning builder serves both, so an inline formula has to be '
'wrapped in a WidgetSpan by the package, and its four positional parameters '
'leave nowhere to pass the source as written or a tap handler without '
'breaking every caller. Will be removed in 2.0.0.',
)
typedef LatexBuilder =
Widget Function(
BuildContext context,
String tex,
TextStyle textStyle,
bool inline,
);