GptMarkdownConfig class

A configuration class for the GPT Markdown component.

The GptMarkdownConfig class is used to configure the GPT Markdown component. It takes a style parameter to set the style of the text, a textDirection parameter to set the direction of the text, and an optional onLinkTab parameter to handle link clicks.

Constructors

GptMarkdownConfig.new({TextStyle? style, TextDirection textDirection = TextDirection.ltr, void onLinkTab(String url, String title)?, TextAlign? textAlign, TextScaler? textScaler, String latexWorkaround(String tex)?, LatexBuilder? latexBuilder, bool followLinkColor = false, CodeBlockBuilder? codeBuilder, SourceTagBuilder? sourceTagBuilder, HighlightBuilder? highlightBuilder, OrderedListBuilder? orderedListBuilder, UnOrderedListBuilder? unOrderedListBuilder, LinkBuilder? linkBuilder, ImageBuilder? imageBuilder, int? maxLines, TextOverflow? overflow, List<MarkdownComponent>? components, List<MarkdownComponent>? inlineComponents})
const

Properties

codeBuilder CodeBlockBuilder?
The code builder.
final
components List<MarkdownComponent>?
The list of components.
final
followLinkColor bool
Whether to follow the link color.
final
hashCode int
The hash code for this object.
no setterinherited
highlightBuilder HighlightBuilder?
The highlight builder.
final
imageBuilder ImageBuilder?
The image builder.
final
inlineComponents List<MarkdownComponent>?
The list of inline components.
final
latexBuilder LatexBuilder?
The LaTeX builder.
final
latexWorkaround String Function(String tex)?
The LaTeX workaround.
final
linkBuilder LinkBuilder?
The link builder.
final
maxLines int?
The maximum number of lines.
final
onLinkTab → void Function(String url, String title)?
The callback function to handle link clicks.
final
orderedListBuilder OrderedListBuilder?
The Ordered List builder.
final
overflow TextOverflow?
The overflow.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceTagBuilder SourceTagBuilder?
The source tag builder.
final
style TextStyle?
The style of the text.
final
textAlign TextAlign?
The alignment of the text.
final
textDirection TextDirection
The direction of the text.
final
textScaler TextScaler?
The text scaler.
final
unOrderedListBuilder UnOrderedListBuilder?
The Unordered List builder.
final

Methods

copyWith({TextStyle? style, TextDirection? textDirection, void onLinkTab(String url, String title)?, TextAlign? textAlign, TextScaler? textScaler, String latexWorkaround(String tex)?, LatexBuilder? latexBuilder, SourceTagBuilder? sourceTagBuilder, bool? followLinkColor, CodeBlockBuilder? codeBuilder, int? maxLines, TextOverflow? overflow, HighlightBuilder? highlightBuilder, LinkBuilder? linkBuilder, ImageBuilder? imageBuilder, OrderedListBuilder? orderedListBuilder, UnOrderedListBuilder? unOrderedListBuilder, List<MarkdownComponent>? components, List<MarkdownComponent>? inlineComponents}) GptMarkdownConfig
A copy of the configuration with the specified parameters.
getRich(InlineSpan span) Text
A method to get a rich text widget from an inline span.
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